A Minecraft Paper plugin that adds a configurable cooldown for starting raids, ensuring players can only trigger a raid after a specified cooldown period.
- Cooldown Management: Players must wait a configurable amount of time between starting raids.
- Command Support: Players can check their remaining cooldown time and reset cooldowns for other players.
- Configurable Messages: Customize messages for cooldown notifications, permissions errors, and other events through the configuration file.
- Persistence: Cooldown data is saved in a YAML file, ensuring that cooldowns are maintained across server restarts.
/raidcooldown
: Displays the cooldown status of the player issuing the command./raidcooldown check <player>
: Checks the cooldown status of the specified player (requires permission)./raidcooldown reset <player>
: Resets the cooldown for the specified player (requires permission)./raidcooldown reload
: Reloads the plugin's configuration file (requires permission).
raidcooldown.check
: Allows the player to check another player's cooldown status.raidcooldown.reset
: Allows the player to reset another player's cooldown.raidcooldown.reload
: Allows the player to reload the plugin's configuration.
The plugin's main configuration file can be found at plugins/RaidCooldown/config.yml
. The default settings include the cooldown duration and message formats.
# config.yml
raidCooldownSeconds: 86400 # 24 hours in seconds
messages:
onlyPlayersMessage: "<red>You must be a player to use this command."
noPermissionMessage: "<red>You do not have permission to use this command."
reloadMessage: "<green>Configuration reloaded successfully."
playerNotFoundMessage: "<red>Player {player} not found."
resetCooldownMessage: "<green>Cooldown for player {player} has been reset."
cooldownResetNotification: "<green>Your cooldown has been reset by {player}."
cooldownRemainingMessage: "<yellow>Your cooldown remaining: {time}."
cooldownRemainingOtherMessage: "<yellow>Cooldown remaining for {player}: {time}."
raidAvailableMessage: "<green>You can start a raid now!"
raidAvailableOtherMessage: "<green>{player} can start a raid now!"
usage: "<yellow>Usage: /raidcooldown [check/reset/reload]"
hour: "<#A180D0>ʜ "
minute: "<#A180D0>ᴍ "
second: "<#A180D0>ꜱ"
- Download the latest release of
RaidCooldown
from the Releases section. - Place the downloaded
.jar
file into theplugins
folder of your Paper server. - Start or restart your server to generate the configuration files.
- Adjust the settings in
config.yml
as needed.
Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests.
This project is licensed under the MIT License. See the LICENSE file for more information.
For questions or support, feel free to open an issue on GitHub or reach out to me directly.