CreeperAlert is a Minecraft plugin that alerts players with chat messages and sound notifications when a creeper gets dangerously close. The plugin tracks nearby creepers and displays a message with the distance to them. It's the perfect tool to protect players from hidden threats.
Plugin Features:
- Chat Alerts: Displays alerts in the chat when a creeper is nearby.
- Hex Color Support: The configuration allows the use of both standard colors with the & symbol and hex colors for message styling.
- Message Customization: All alerts can be customized via the configuration, including text, colors, and distances.
- Sound Notifications: When a creeper is within range, a sound is played, which can be configured in the settings.
- Permission Support: Alerts are shown only to players with the required permission.
Commands:
/creeperalert reload
Description: Reloads the plugin configuration.
Permission: creeperalert.reload
Configuration Options:
- message
Description: The message displayed to the player in ActionBar when a creeper is within a 10-block radius.
Code (Text):
message: "&7Warning! Creeper is %distance% blocks away from you!"
This parameter supports the placeholder
%distance%, which will be replaced with the distance to the nearest creeper.
Both regular colors (e.g.,
&7) and hex colors (e.g.,
#ff0000) are supported.
- sound
Description: The sound that will play when a creeper is detected within range.
Code (Text):
sound: "BLOCK_ANVIL_PLACE"
- warning-distance
Description: The maximum distance at which a creeper will be tracked.
Code (Text):
warning-distance: 10.0
- permission
Description: The permission required to receive alerts.
Code (Text):
permission: "creeperalert.alert"
Permissions:
- creeperalert.reload: Grants the permission to reload the plugin configuration using the /creeperalert reload command.
- creeperalert.alert: Allows receiving alerts in ActionBar when a creeper is nearby.
Installation:
- Download the CreeperAlert plugin.
- Place it in the plugins folder of your Minecraft server.
- Restart the server or run the /reload command.
- Edit the config.yml file located in plugins/CreeperAlert to configure the alerts and sounds.
Compatibility:
- Minecraft 1.17+
- Spigot and Paper compatible.