Create a Minecraft Paper plugin for the latest version (1.21.x) called "LifeSteal".
Features:
1. Hardcore World
- The server must run in hardcore mode.
- When a player dies, they are automatically permanently banned.
- The ban message should say: "You have died. You can only return if another player revives you."
2. Player Head Drop
- When a player dies, they drop their own player head.
- The head must preserve the player's skin.
- Only one head should drop per death.
3. Revival System
- A banned player can be revived using their own player head.
- Add the command:
/revive <player>
- The command can only be used if the command executor has the correct player's head in their inventory.
- When the command is executed:
- Remove one player head from the inventory.
- Unban the player.
- Broadcast: "<player> has been revived!"
- The revived player can join the server again.
4. Permissions
- lifesteal.revive
5. Config
Allow changing:
- Ban message
- Broadcast messages
- Whether heads drop
- Whether revival consumes the head
6. Compatibility
- Paper 1.21.x
- Java 21
- No external dependencies.
- Clean, optimized, and well-commented code.
3 views0 upvotes
The code of this project is kept private by its owner.
You can see its files on the left. Want something like it? Describe it to Codexe and try it on a free test server.