aboutsummaryrefslogtreecommitdiff
path: root/src/net/brysonsteck/Resurrection/commands
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2021-06-15 18:49:36 -0600
committerBryson Steck <steck.bryson@gmail.com>2021-06-15 18:49:36 -0600
commitd11e749ea0351948a50e4b11673165dee719e387 (patch)
tree7978a039377acd6d3cea162833515466396cc3ac /src/net/brysonsteck/Resurrection/commands
parentfed65b2a8cf4fdf78a005be415aef87b99a31f67 (diff)
downloadresurrection-d11e749ea0351948a50e4b11673165dee719e387.tar
resurrection-d11e749ea0351948a50e4b11673165dee719e387.tar.gz
resurrection-d11e749ea0351948a50e4b11673165dee719e387.tar.bz2
shortened death time to test resurrection
Diffstat (limited to 'src/net/brysonsteck/Resurrection/commands')
-rw-r--r--src/net/brysonsteck/Resurrection/commands/CommandResurrect.java2
1 files changed, 1 insertions, 1 deletions
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);