mrpuranaplays

Create a Minecraft Paper 1.21.5 plugin named "ElectionSMP".

The plugin must provide a simple community system with Election, Reputation, and Achievement tracking.

CORE FEATURES

  1. ELECTION SYSTEM
  • Command: /election register (become candidate)
  • Command: /election vote (INVENTORY GUI voting menu)
  • One player = one vote
  • Election runs on configurable interval (default 14 or 30 days)
  • Automatic start and end of election
  • Highest vote winner becomes Mayor
  • Store previous mayors history
  • Display current Mayor using PlaceholderAPI and tags
  1. REPUTATION SYSTEM
  • Command: /rep give <player>
  • Players can give +1 reputation
  • 24-hour cooldown per giver per target
  • No self-reputation allowed
  • Reputation levels:

0 = Citizen 50 = Helper 100 = Trusted Citizen 250 = Community Hero

  • Reputation is used for election eligibility (configurable minimum requirement)
  • Show reputation above player name and in chat using placeholders
  1. ACHIEVEMENT SYSTEM
  • Track:

- Playtime - Votes received - Reputation

  • Provide leaderboards:

/leaderboard /halloffame

  • Weekly or season-based ranking reset option
  • Optional hologram/statue support

PLACEHOLDERS (PlaceholderAPI)

  • %electionsmp_rep% → player reputation
  • %electionsmp_mayor% → current mayor name
  • %electionsmp_top_rep_1_name% → top reputation player name
  • %electionsmp_top_rep_1_value% → top reputation value

INTEGRATION SUPPORT

  • PlaceholderAPI support required
  • Compatible with TAB plugin for nametag display
  • Compatible with LPC or EssentialsX Chat for chat formatting
  • Use placeholders in:

- chat prefix - tab list - above head nametag - scoreboard

TECHNICAL REQUIREMENTS

  • PaperMC 1.21.5
  • Java 21
  • SQLite database (MySQL optional)
  • Async database operations
  • YAML configuration system (fully customizable)
  • Lightweight and optimized for SMP servers
  • No economy or bank system included
Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code