Main command: /chooseevent
When a player uses /chooseevent:
- Open a INVENTORY GUI (inventory) with 27 slots (like a shulker box)
In the INVENTORY GUI:
- Slot 11: Mace named "Juggernaut"
- Slot 13: Diamond Sword named "FFA"
- Slot 15: Campfire named "Teams"
Rules:
- Players cannot take items out of the INVENTORY GUI
- Players can only click items to vote
- Each player can vote only once
Voting system:
- Count how many votes each option gets
- Juggernaut, FFA, and Teams each have their own vote count
Permissions:
- Only OP players can see vote counts (for example in item lore)
- Non-OP players only see the item names
Admin features:
- OP players can edit the INVENTORY GUI layout (slots of items)
- Fill empty slots with green glass panes
- Only voting items should be clickable
Make sure:
- The plugin includes plugin.yml
- The code is complete and ready to compile
Kodari can make mistakes. Review important code before using.
Files
No files in this session
Code