Create a professional Minecraft Paper plugin for 1.21+ named "VoteRewardBot" with integrated Discord bot support using JDA.
Requirements:
- Plugin should automatically create:
- /plugins/VoteRewardBot/config.yml
- /plugins/VoteRewardBot/rewards.yml
- /plugins/VoteRewardBot/data.yml
- config.yml should contain:
- discord bot token
- guild/server id
- allowed vote channel id
- embed color
- cooldown settings
Example: bot-token: "" guild-id: "" vote-channel-id: "" vote-cooldown-hours: 24
- The Discord bot must:
- Login using token from config.yml
- Register slash command /vote
- Only allow /vote in the configured channel ID
- Ignore DMs and other channels
- Send error embed if used in wrong channel
- Minecraft plugin commands:
- /votereward itemadd
-> Saves the item currently held in player's hand into rewards.yml including:
- enchantments - lore - custom model data - NBT - amount - display name
- /votereward remove
- /votereward reload
- /votereward list
- Voting System:
- When user uses /vote in Discord:
-> Ask for Minecraft username -> Check cooldown -> Give configured reward -> Support offline players -> Queue rewards if player offline -> Give queued rewards when player joins
- Add anti-abuse protection:
- cooldown system
- duplicate vote prevention
- optional IP/account protection structure
- Add vote streak system:
- 3 day streak bonus
- 7 day streak rare reward
- rewards.yml example format:
rewards: vote1: material: DIAMOND_SWORD amount: 1 display-name: "&bVote Sword" enchants: sharpness: 5
- Support:
- Paper API 1.21+
- Java 21
- ItemEdit items
- ItemsAdder compatibility structure
- Oraxen compatibility structure
- Use clean architecture:
- commands/
- discord/
- managers/
- listeners/
- storage/
- utils/
- Plugin should be optimized, async where possible, and production ready.
- Generate:
- full source code
- plugin.yml
- all classes
- config handling
- Discord event listeners
- reward manager
- offline reward system
- cooldown manager
- streak manager
- Make all code clean, commented, modern, and easy to expand later.
And make sure it is fully compatible with 1.21.11 [ if we use via verison]
No files in this session