notsgplays

Create a Minecraft Paper plugin in Java called "HungerStealSMP".

Core Mechanics:

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

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

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

  1. Player Head Drop:
  • On player death:

- Drop their player head item with their skin.

  1. Data System:
  • Save player data (hunger level + death count) in config.yml or data file.
  • Data must persist after server restart.
  1. Commands:
  • /hungercheck → shows current hunger level and deaths
  • /hungerreset <player> → reset hunger + deaths (admin only)
  • /revive <player> → unban and restore default hunger (admin)
  1. Config:
  • Configurable:

- Max deaths limit (default 10) - Starting hunger level - Enable/disable prison teleport - Messages

  1. 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
Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code