Fixed health not being reset to full upon kit clearing
This commit is contained in:
1 parent
94bedb86bf
commit
ca4f62657b
2 files changed
+3
-2
No files matched your search
@@ -492,6 +492,7 @@ public class MainCommand implements CommandExecutor {
|
||||
p.getInventory().clear();
|
||||
|
||||
Toolkit.setMaxHealth(p, 20);
|
||||
p.setHealth(20.0);
|
||||
|
||||
for (PotionEffect effect : p.getActivePotionEffects()) {
|
||||
p.removePotionEffect(effect.getType());
|
||||
|
||||
@@ -69,9 +69,9 @@ public class Arena {
|
||||
}
|
||||
|
||||
p.setGameMode(GameMode.SURVIVAL);
|
||||
|
||||
Toolkit.setMaxHealth(p, 20);
|
||||
|
||||
if (config.getBoolean("Arena.FancyDeath")) {
|
||||
Toolkit.setMaxHealth(p, 20);
|
||||
p.setHealth(20.0);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user