This is a quick plugin that I made for this reddit user: https://www.reddit.com/r/admincraft/comments/g38tk2/plugin_arrow_shot_xdistance_gets_put_in_chat/
- Native Minecraft Version:
- Tested Minecraft Versions:
- Source Code:
It has a config which allows you to configure the message that is put into chat, the minimum distance to notify the player, and whether to notify only the player who landed the hit or all players online. You can also configure commands to be executed when the player lands one of these bow shots, this can be used to reward the player with potion effects, money etc.
It also has a reload command to make configuring the plugin slightly easier.Code (YAML):
message: "&7&l%player% has hit a bow shot from %distance% blocks away!"
- "eco give %player% 100"
This plugin is also more accurate than other plugins you may find like it, as it stores the position that the player originally shot from, so the distance is always compared to the original shot location rather than the location of the player when the arrow hits.
If you need fast support, join my discord at https://discord.gg/aRD9nAT, otherwise simply message my spigot account as I check it fairly regularly.
Notify your players when they land an impressive bow shot!