Create a Minecraft Paper plugin in Java called "HungerStealSMP".
Core Mechanics:
- HungerSteal System:
- Each player has a limited number of hunger bars (food level).
- When a player dies:
- Reduce their maximum hunger by 1 bar (2 hunger points). - This reduction should be permanent unless restored by admin.
- Player Kill Reward:
- If a player kills another player:
- The killer gains +1 hunger bar (increase max hunger). - The victim loses 1 hunger bar.
- Show messages to both players:
- Killer: "You stole 1 hunger bar!" - Victim: "You lost 1 hunger bar!"
- Death Limit System:
- Track total deaths of each player.
- If a player dies 10 times:
- Automatically ban the player. - Broadcast: "<player> has been eliminated from HungerSteal SMP!" - Drop the player’s head at death location. - Teleport them to a prison world/location before ban (optional configurable).
- Player Head Drop:
- On player death:
- Drop their player head item with their skin.
- Data System:
- Save player data (hunger level + death count) in config.yml or data file.
- Data must persist after server restart.
- Commands:
- /hungercheck → shows current hunger level and deaths
- /hungerreset <player> → reset hunger + deaths (admin only)
- /revive <player> → unban and restore default hunger (admin)
- Config:
- Configurable:
- Max deaths limit (default 10) - Starting hunger level - Enable/disable prison teleport - Messages
- Compatibility:
- Must support latest Minecraft Paper version
- Use clean, optimized code
- Include plugin.yml
Output:
- Full Java source code
- plugin.yml
- Folder structure
- Ready-to-compile .jar instructions
No files in this session