Create a Minecraft plugin named "95_Weapon".
Requirements:
- Platform: Paper / Spigot (latest version, compatible with Minecraft 1.21.x)
- Language: Java
Features:
- Add at least 5 custom weapons with unique names:
- Flame Blade - Shadow Dagger - Thunder Hammer - Frost Axe - Wind Katana
- Each weapon must have:
- Custom damage higher than normal weapons - Special ability (like fire, lightning, freeze, or speed effect)
- Cooldown System:
- Each weapon ability must have a 2-second cooldown - Prevent ability spam and show a message if used too early
- Effects:
- Add particles and sound effects when ability is used
- Commands:
- /giveweapon <name> → gives the selected custom weapon
- Permissions:
- Only OP or players with permission can use commands
- Config:
- Allow editing weapon damage and cooldown in a config.yml file
- Output:
- Provide full source code and compiled .jar file - Include instructions on how to install the plugin
Kodari can make mistakes. Review important code before using.
Files
No files in this session
Code