From d11e749ea0351948a50e4b11673165dee719e387 Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Tue, 15 Jun 2021 18:49:36 -0600 Subject: shortened death time to test resurrection --- src/net/brysonsteck/Resurrection/commands/CommandResurrect.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net/brysonsteck/Resurrection/commands') diff --git a/src/net/brysonsteck/Resurrection/commands/CommandResurrect.java b/src/net/brysonsteck/Resurrection/commands/CommandResurrect.java index f05de5d..a969687 100644 --- a/src/net/brysonsteck/Resurrection/commands/CommandResurrect.java +++ b/src/net/brysonsteck/Resurrection/commands/CommandResurrect.java @@ -22,7 +22,7 @@ public class CommandResurrect implements CommandExecutor { p.sendMessage("That player does not exist! Failed to resurrect."); return false; } - if (resurrectPlayer.getGameMode() == GameMode.ADVENTURE) { + if (resurrectPlayer.getGameMode() == GameMode.SPECTATOR) { for (PotionEffect effect : resurrectPlayer.getActivePotionEffects()) resurrectPlayer.removePotionEffect(effect.getType()); resurrectPlayer.setGameMode(GameMode.SURVIVAL); -- cgit v1.2.3