aboutsummaryrefslogtreecommitdiff
path: root/src/net/brysonsteck/Resurrection/commands
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/brysonsteck/Resurrection/commands')
-rw-r--r--src/net/brysonsteck/Resurrection/commands/CommandResurrect.java4
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);