From c1981178a4e03a88084f01a860139d27c173fbbe Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Sun, 6 Jun 2021 12:41:43 -0600 Subject: changed to adventure gamemode --- src/net/brysonsteck/Resurrection/commands/CommandResurrect.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (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 a969687..8d5c4b5 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.SPECTATOR) { + if (resurrectPlayer.getGameMode() == GameMode.ADVENTURE) { for (PotionEffect effect : resurrectPlayer.getActivePotionEffects()) resurrectPlayer.removePotionEffect(effect.getType()); resurrectPlayer.setGameMode(GameMode.SURVIVAL); @@ -44,7 +44,7 @@ public class CommandResurrect implements CommandExecutor { System.out.println("That player does not exist! Failed to resurrect."); return false; } - if (resurrectPlayer.getGameMode() == GameMode.SPECTATOR) { + if (resurrectPlayer.getGameMode() == GameMode.ADVENTURE) { for (PotionEffect effect : resurrectPlayer.getActivePotionEffects()) resurrectPlayer.removePotionEffect(effect.getType()); resurrectPlayer.setGameMode(GameMode.SURVIVAL); -- cgit v1.2.3