When entering the server, the player will be set 2 hp (1 heart), he can be reborn 8 times. If the player has 0 hp, then he will be given the observer mode. When a player dies, the plugin notifies everyone in the chat.
TAB List:
Chat:
Commands:
/hp - Displays the number of your HP's.
/sethp (nickname) (0-9) - Sets the number of HP for players.
Permissions:
nineHP.sethp - Allows you to use the /sethp command.
Installing the Russian language:
1. Open the messages.yml file in the plugins folder (plugins/9HP).
2. Replace the text in it with this one:
messages:
lost-one-hp: "§4§l%player% потерял 1 хп!"
lost-all-hp: "§4§l%player% потерял все хп!"
player-not-loaded: "§4Ошибка при получении информации. Переподключитесь к серверу, если это не помогло, обратитесь к администратору сервера."
number-of-hp: "Количество оставшихся хп: §l%number%."
how-to-use-sethp: "§4Недопустимые аргументы. Пример: /sethp %player% (0-9)"
unknown-player: "§4Этот игрок не существует или оффлайн."
changed-player-hp: "§2Вы изменили количество хп §6%player% §2на: %number%"
no-permission: "§4У вас недостаточно прав для выполнения этой команды."
3. Save the file and restart the server.
P.S: Add a point system?) The functions are already ready, it remains to use them in the plugin. (Buying lives, paying for using totems, etc.)
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta