Item Details The custom item should be a Wither Rose.
Display Name: §4 Reaper's Coin Lore: §7Mark a player for death. §7Deal §c20% extra damage §7to them. §7Duration: §e15 seconds §7Cooldown: §e3 minutes Restrictions The Wither Rose cannot be planted or placed under any circumstances.
Right-clicking the item activates its ability instead of placing it.
The item should not be consumed when used.
Command Command: /reapercoin Permission: OP only.
When executed by an OP, it gives them 1 Reaper's Coin.
Non-OP players should receive a message saying they do not have permission.
Ability: Death Mark
When a player right-clicks with the Reaper's Coin:
The plugin should do the effect on the player that the user right clicks on "§cNo target found." If a valid player is found:
Apply a Death Mark for 15 seconds.
The marked player should have the Glowing effect for the entire duration.
Send the user: "§4☠ You have marked <player> for death!" Send the target: "§c☠ You have been marked for death!" Damage Bonus While a player is marked:
The player who used the Reaper's Coin deals 20% extra damage to the marked target.
Example: 10 damage becomes 12 damage.
The bonus only applies between the marker and their marked target.
Other players should not receive the damage bonus.
Cooldown Cooldown: 180 seconds (3 minutes).
Cooldown is tracked per player.
If a player tries to use the item while on cooldown:
Cancel the activation.
Send: "§cReaper's Coin is on cooldown for <remaining time> seconds." End of Mark
After 15 seconds:
Remove the glowing effect.
Remove the Death Mark.
Send the user: "§7Death Mark on <player> has expired." Send the target: "§7The Death Mark has faded." Technical Requirements Minecraft version: latest Paper/Spigot API.
Efficient cooldown management.
Proper cleanup on player disconnects.
Prevent exploits or duplication.
Use persistent item identification so renamed Wither Roses do not gain the ability.
The plugin should compile without errors and be production-ready.