drollking0658

Create a complete Minecraft "Among Us Style" plugin with the following full specifications:

==================================== ADMIN COMMANDS ==================================== /start - Start game (Admin only) /stop - Stop game (Admin only) /rewind - Resume game (Admin only)

==================================== PLAYER REQUIREMENT ====================================

  • Minimum 3 players required
  • If players < 3:

"❌ Not enough players to start the game"

==================================== GAME START ====================================

  • Start only if players ≥ 3
  • Show scrolling role text:

"Imposter... Crewmate... Sheriff... Detective..."

==================================== ROLE SYSTEM ====================================

Imposter Count:

  • 3–5 players → 1 Imposter
  • 6+ players → 2 Imposters (MAX)

Other Roles:

  • 1 Detective
  • 1 Sheriff
  • Remaining → Crewmates

Role Visibility:

  • Players can ONLY see their own role
  • Roles hidden from others

Role Colors:

  • Imposter → RED
  • Crewmate → GREEN
  • Detective → PURPLE
  • Sheriff → ORANGE

==================================== ITEM SYSTEM ====================================

  • Imposter → Diamond Sword (Sharpness V)
  • Sheriff → Iron Sword (Sharpness)
  • Others → No weapon
  • All players → Goat Horn (for meetings)

==================================== ABILITY COMMAND SYSTEM ==================================== Command: /ability <number> <player> /ability off

Rules:

  • Only roles with abilities can use
  • Cooldown: 5 minutes
  • If on cooldown:

"❌ Ability is on cooldown"

==================================== IMPOSTER ABILITIES ====================================

/ability 1

  • Apply Blindness/Darkness to nearby players
  • Duration: 1 minute

/ability 2 <player>

  • Reduce target player's health to 5 hearts

/ability off

  • Cancel active ability

==================================== DETECTIVE ABILITY ====================================

/ability 1 <player>

  • Reveal target player role ONLY to detective

Output: "🔍 <Player> is an IMPOSTER"

/ability off

==================================== SHERIFF ABILITY ====================================

/ability 1 <player>

  • If target is Imposter → target dies
  • If target is NOT Imposter → Sheriff dies

==================================== CREWMATE ====================================

  • No abilities
  • Can call meetings and vote only

==================================== MEETING SYSTEM ====================================

  • Use Goat Horn to call meeting
  • Teleport all players to spawn
  • Give voting book

Message: "📯 Meeting called by <PlayerName>"

==================================== VOTING SYSTEM (IMPORTANT) ====================================

Voting Duration:

  • 1 minute

Voting Method:

  • Players write player name OR "skip"

------------------------------------ RESULT LOGIC ------------------------------------

  1. NORMAL VOTE (Highest votes):
  • Player is eliminated
  • Set to Spectator

Message: "🗳️ <PlayerName> was ejected!" "👀 <PlayerName> was an <ROLE>"

------------------------------------

  1. TIE VOTE:
  • If 2 or more players have equal highest votes

Action:

  • No one is eliminated

Message: "⚖️ Voting resulted in a TIE!" "❌ No one was eliminated."

------------------------------------

  1. SKIP VOTE:
  • If "skip" has highest votes

Action:

  • No one is eliminated

Message: "⏭️ Vote skipped!" "❌ No one was eliminated."

------------------------------------

Vote Priority Logic:

  • Count all votes
  • Find highest vote count
  • If one player → eliminate
  • If tie → no elimination
  • If skip highest → no elimination

==================================== KILL SYSTEM ====================================

  • Only Imposter & Sheriff can kill
  • NO chat message
  • NO death message
  • Silent kill

==================================== DEATH SYSTEM ====================================

  • Player becomes Spectator instantly
  • No item drops

Dead Body:

  • Diamond Block
  • Sign: "RIP <PlayerName>"
  • Button to report

Report Message: "💀 RIP <PlayerName> | Reported by <Player>"

==================================== SPECTATOR SYSTEM ==================================== /tp <playername>

==================================== WIN CONDITIONS ====================================

Crewmates Win:

  • All imposters eliminated

Imposters Win:

  • When imposters ≥ remaining players

Kill Logic Examples:

  • 3 players → kill 2 → win
  • 4 players → kill 2 → win
  • 5 players → kill 3 → win
  • 6 players → kill 4 → win
  • 7 players → kill 5 → win

==================================== GAME END ====================================

  • Auto stop game
  • Disable abilities
  • Teleport all to spawn

==================================== RESET SYSTEM ====================================

  • Clear inventory
  • Spectators → Survival
  • Reset roles

==================================== OTHER RULES ====================================

  • No item drops
  • No kill messages
  • Clean Among Us style gameplay

==================================== OPTIONAL CONFIG ==================================== reveal-role-on-death: true enable-tie-message: true enable-skip-message: true

==================================== IMPORTANT ====================================

  • No bugs in voting system
  • Skip must work correctly
  • Tie must not eliminate anyone
  • Role reveal must show correctly
  • Clean chat formatting like Among Us
Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code