mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-02 14:37:46 +01:00
make sure player isnt dead before healing
This commit is contained in:
parent
3ddbeea45a
commit
e63276242c
@ -40,7 +40,7 @@ public class Commandgod extends EssentialsCommand
|
||||
private void godPlayer(User player, boolean enabled)
|
||||
{
|
||||
player.setGodModeEnabled(enabled);
|
||||
if (enabled)
|
||||
if (enabled && player.getHealth() != 0)
|
||||
{
|
||||
player.setHealth(player.getMaxHealth());
|
||||
player.setFoodLevel(20);
|
||||
|
@ -69,6 +69,10 @@ public class Commandheal extends EssentialsCommand
|
||||
|
||||
private void healPlayer(final Player player)
|
||||
{
|
||||
if (player.getHealth() == 0)
|
||||
{
|
||||
throw new Exception(_("healDead"));
|
||||
}
|
||||
player.setHealth(player.getMaxHealth());
|
||||
player.setFoodLevel(20);
|
||||
player.setFireTicks(0);
|
||||
|
@ -121,6 +121,7 @@ hatPlaced=\u00a76Enjoy your new hat!
|
||||
hatRemoved=\u00a76Your hat has been removed.
|
||||
haveBeenReleased=\u00a76You have been released.
|
||||
heal=\u00a76You have been healed.
|
||||
healDead=\u00a74You cannot heal someone who is dead!
|
||||
healOther=\u00a76Healed\u00a7c {0}\u00a76.
|
||||
helpConsole=To view help from the console, type ?.
|
||||
helpFrom=\u00a76Commands from {0}:
|
||||
|
@ -124,6 +124,7 @@ hatPlaced=\u00a7eEnjoy your new hat!
|
||||
hatRemoved=\u00a7eYour hat has been removed.
|
||||
haveBeenReleased=\u00a77Byl jsi uvolnen
|
||||
heal=\u00a77Byl jsi uzdraven.
|
||||
healDead=\u00a74You cannot heal someone who is dead!
|
||||
healOther=\u00a77Uzdravil jsi hrace {0}.
|
||||
helpConsole=Pokud chces videt napovedu z konzole, napis ?.
|
||||
helpFrom=\u00a77Prikazy od{0}:
|
||||
|
@ -121,6 +121,7 @@ hatPlaced=\u00a7eEnjoy your new hat!
|
||||
hatRemoved=\u00a7eYour hat has been removed.
|
||||
haveBeenReleased=\u00a77Du er blevet l\u00f8sladt
|
||||
heal=\u00a77Du er blevet healed.
|
||||
healDead=\u00a74You cannot heal someone who is dead!
|
||||
healOther=\u00a77Healed {0}.
|
||||
helpConsole=For at se hj\u00e6lp fra konsolen, skriv ?.
|
||||
helpFrom=\u00a77Commands from {0}:
|
||||
|
@ -121,6 +121,7 @@ hatPlaced=\u00a7eEnjoy your new hat!
|
||||
hatRemoved=\u00a7eYour hat has been removed.
|
||||
haveBeenReleased=\u00a77Du wurdest frei gelassen.
|
||||
heal=\u00a77Du wurdest geheilt.
|
||||
healDead=\u00a74You cannot heal someone who is dead!
|
||||
healOther=\u00a77{0} geheilt.
|
||||
helpConsole=Um die Hilfe der Konsole zu sehen, schreibe ?.
|
||||
helpFrom=\u00a77Commands from {0}:
|
||||
|
@ -121,7 +121,9 @@ hatPlaced=\u00a76Enjoy your new hat!
|
||||
hatRemoved=\u00a76Your hat has been removed.
|
||||
haveBeenReleased=\u00a76You have been released.
|
||||
heal=\u00a76You have been healed.
|
||||
healDead=\u00a7cYou cannot heal someone who is dead!
|
||||
healOther=\u00a76Healed\u00a7c {0}\u00a76.
|
||||
healDead=\u00a74You cannot heal someone who is dead!
|
||||
helpConsole=To view help from the console, type ?.
|
||||
helpFrom=\u00a76Commands from {0}:
|
||||
helpLine=\u00a76/{0}\u00a7r: {1}
|
||||
|
@ -121,6 +121,7 @@ hatPlaced=\u00a7eDisfruta tu nuevo sombrero!
|
||||
hatRemoved=\u00a7eTu sombrero a sido removido.
|
||||
haveBeenReleased=\u00a77Has sido liberado.
|
||||
heal=\u00a77Has sido curado.
|
||||
healDead=\u00a74You cannot heal someone who is dead!
|
||||
healOther=\u00a77Has curado a {0}.
|
||||
helpConsole=Para obtener ayuda de la consola, escribe ?.
|
||||
helpFrom=\u00a77Comandos de {0}:
|
||||
|
@ -121,6 +121,7 @@ hatPlaced=\u00a7eNauti uudesta hatustasi!
|
||||
hatRemoved=\u00a7eYour hat has been removed.
|
||||
haveBeenReleased=\u00a77Sinut on vapautettu
|
||||
heal=\u00a77Sinut on parannettu.
|
||||
healDead=\u00a74You cannot heal someone who is dead!
|
||||
healOther=\u00a77Paransit pelaajan {0}.
|
||||
helpConsole=Katsoaksesi apua konsolista, kirjoita ?.
|
||||
helpFrom=\u00a77Komennot {0}:
|
||||
|
@ -121,6 +121,7 @@ hatPlaced=\u00a7eProfitez bien de votre nouveau chapeau !
|
||||
hatRemoved=\u00a7eVotre chapeau a \u00e9t\u00e9 retir\u00e9.
|
||||
haveBeenReleased=\u00a77Vous avez \u00e9t\u00e9 lib\u00e9r\u00e9.
|
||||
heal=\u00a77Vous avez \u00e9t\u00e9 soign\u00e9.
|
||||
healDead=\u00a74You cannot heal someone who is dead!
|
||||
healOther=\u00a77{0} a \u00e9t\u00e9 soign\u00e9.
|
||||
helpConsole=Pour voir l''aide tapez ?
|
||||
helpFrom=\u00a77Commands from {0}:
|
||||
|
@ -121,6 +121,7 @@ hatPlaced=\u00a7eEnjoy your new hat!
|
||||
hatRemoved=\u00a7eYour hat has been removed.
|
||||
haveBeenReleased=\u00a77Sei stato scarcerato.
|
||||
heal=\u00a77Sei stato curato.
|
||||
healDead=\u00a74You cannot heal someone who is dead!
|
||||
healOther=\u00a77{0} e'' stato curato.
|
||||
helpConsole=Digitare ? per la guida.
|
||||
helpFrom=\u00a77Comandi da {0}:
|
||||
|
@ -121,6 +121,7 @@ hatPlaced=\u00a7eGeniet van je nieuwe hoed!
|
||||
hatRemoved=\u00a7eYour hat has been removed.
|
||||
haveBeenReleased=\u00a77Je bent bevrijdt
|
||||
heal=\u00a77Je bent genezen.
|
||||
healDead=\u00a74You cannot heal someone who is dead!
|
||||
healOther=\u00a77Je geneezde {0}.
|
||||
helpConsole=type ? om de consolehelp weer te geven.
|
||||
helpFrom=\u00a77Commands from {0}:
|
||||
|
@ -121,6 +121,7 @@ hatPlaced=\u00a7eCiesz sie nowym kapeluszem!
|
||||
hatRemoved=\u00a7eYour hat has been removed.
|
||||
haveBeenReleased=\u00a77Zostales wypuszczony.
|
||||
heal=\u00a77Uleczony
|
||||
healDead=\u00a74You cannot heal someone who is dead!
|
||||
healOther=\u00a77Uleczono {0}.
|
||||
helpConsole=Aby uzyskac pomoc z konsoli, wpisz \u0093????.
|
||||
helpFrom=\u00a77Komendy od {0}:
|
||||
|
@ -121,6 +121,7 @@ hatPlaced=\u00a7eAproveite o seu novo chapeu!
|
||||
hatRemoved=\u00a7eYour hat has been removed.
|
||||
haveBeenReleased=\u00a77Voc\u00ea foi liberado.
|
||||
heal=\u00a77Voc\u00ea foi curado.
|
||||
healDead=\u00a74You cannot heal someone who is dead!
|
||||
healOther=\u00a77Curado {0}.
|
||||
helpConsole=Para ver ajuda do console, digite ?.
|
||||
helpFrom=\u00a77Comandos a partir de {0}:
|
||||
|
@ -121,6 +121,7 @@ hatPlaced=\u00a7eNjut av din nya hatt!
|
||||
hatRemoved=\u00a7eDin hatt har tagits bort.
|
||||
haveBeenReleased=\u00a77Du har blivit friad
|
||||
heal=\u00a77Du har blivit l\u00e4kt.
|
||||
healDead=\u00a74You cannot heal someone who is dead!
|
||||
healOther=\u00a77L\u00e4kte {0}.
|
||||
helpConsole=F\u00f6r att visa hj\u00e4lp fr\u00e5n konsolen, skriv ?.
|
||||
helpFrom=\u00a77Kommandon fr\u00e5n {0}:
|
||||
|
Loading…
Reference in New Issue
Block a user