TownHop Cooldown icon

TownHop Cooldown -----

Towny Addon, niche, configurable.



Command / Usage
  • Admin usage:
  • Permission node : "towny.cooldowns.admin"
  • /cda [set] {Player Name} (duration (this can be 0 to reset a players cooldown)) -> /cda set {playername} (duration) will start a townhop cooldown for the player for (duration, please keep in mind this value is in seconds).
  • /cda [config] [reload] -> use this to update your changes from the config.yml
  • /cda [config] [save] -> use this to save the config.yml (keep in mind, when this plugin is shutdown it automatically saves the config. You may simply plugman reload this plugin after using the config reload command.)
  • Player usage:
  • Permission node : "towny.coodlowns.check"
  • /cooldown -> returns their current cooldown time if any.

Config.yml explanation:

cooldowns:
# input is seconds ie: 24 hours = 86400 seconds
duration: 86400

# Having this value set to true will not allow the player to leave a town when their cooldown is active
townLeaveEvent: false

# Having this value set to true will not allow the player to join a town when their cooldown is acitve.
townJoinEvent: true

# Having this value set to true will allow the inviter to send an invitation to the target player even if their cooldown is active.
townInviteEvent: true

# Having this value set to true will send a message to the inviter if the person they invited is on cooldown.
sendCooldownWarningToInviter: true

# Only support for basic & color codes.
messages:
onCooldown: "&cYou are on cooldown. Cannot join or leave another town."
remainingTime: "&eRemaining cooldown: %hours% hours."
# Make sure to note, %player% placeholder can only be used in "inviteCooldown".
inviteCooldown: "&fCannot invite &c&l%player%&f as they are on cooldown. Remaining cooldown: &c&l%hours% &fhours."
startCooldown: "&fYou have been put on &c&lTownHop cooldown! &r (/cooldown to check your remaining time)"
Resource Information
Author:
----------
Total Downloads: 42
First Release: Feb 4, 2024
Last Update: Feb 4, 2024
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings