diff options
author | Bryson Steck <steck.bryson@gmail.com> | 2021-06-06 12:41:43 -0600 |
---|---|---|
committer | Bryson Steck <steck.bryson@gmail.com> | 2021-06-06 12:41:43 -0600 |
commit | c1981178a4e03a88084f01a860139d27c173fbbe (patch) | |
tree | 717e7187a90c26be8feb173b8a5e8fd69afbfe85 /src/net/brysonsteck/Resurrection/commands | |
parent | 1922bb3499857a4464f07eba2ee2de932674be5f (diff) | |
download | resurrection-c1981178a4e03a88084f01a860139d27c173fbbe.tar resurrection-c1981178a4e03a88084f01a860139d27c173fbbe.tar.gz resurrection-c1981178a4e03a88084f01a860139d27c173fbbe.tar.bz2 |
changed to adventure gamemode
Diffstat (limited to 'src/net/brysonsteck/Resurrection/commands')
-rw-r--r-- | src/net/brysonsteck/Resurrection/commands/CommandResurrect.java | 4 |
1 files changed, 2 insertions, 2 deletions
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); |