crazygamerz0137

Create a professional Minecraft Paper plugin for 1.21+ named "VoteRewardBot" with integrated Discord bot support using JDA.

Requirements:

  1. Plugin should automatically create:
  • /plugins/VoteRewardBot/config.yml
  • /plugins/VoteRewardBot/rewards.yml
  • /plugins/VoteRewardBot/data.yml
  1. 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

  1. 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
  1. 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
  1. 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

  1. Add anti-abuse protection:
  • cooldown system
  • duplicate vote prevention
  • optional IP/account protection structure
  1. Add vote streak system:
  • 3 day streak bonus
  • 7 day streak rare reward
  1. rewards.yml example format:

rewards: vote1: material: DIAMOND_SWORD amount: 1 display-name: "&bVote Sword" enchants: sharpness: 5

  1. Support:
  • Paper API 1.21+
  • Java 21
  • ItemEdit items
  • ItemsAdder compatibility structure
  • Oraxen compatibility structure
  1. Use clean architecture:
  • commands/
  • discord/
  • managers/
  • listeners/
  • storage/
  • utils/
  1. Plugin should be optimized, async where possible, and production ready.
  1. Generate:
  • full source code
  • plugin.yml
  • all classes
  • config handling
  • Discord event listeners
  • reward manager
  • offline reward system
  • cooldown manager
  • streak manager
  1. 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]

Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code