aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2021-06-06 12:41:43 -0600
committerBryson Steck <steck.bryson@gmail.com>2021-06-06 12:41:43 -0600
commitc1981178a4e03a88084f01a860139d27c173fbbe (patch)
tree717e7187a90c26be8feb173b8a5e8fd69afbfe85
parent1922bb3499857a4464f07eba2ee2de932674be5f (diff)
downloadresurrection-c1981178a4e03a88084f01a860139d27c173fbbe.tar
resurrection-c1981178a4e03a88084f01a860139d27c173fbbe.tar.gz
resurrection-c1981178a4e03a88084f01a860139d27c173fbbe.tar.bz2
changed to adventure gamemode
-rw-r--r--out/artifacts/Resurrection_jar/Resurrection.jarbin1334012 -> 1334014 bytes
-rw-r--r--out/production/Resurrection/net/brysonsteck/Resurrection/PlayerListener.classbin2450 -> 2450 bytes
-rw-r--r--out/production/Resurrection/net/brysonsteck/Resurrection/commands/CommandResurrect.classbin3034 -> 3034 bytes
-rw-r--r--src/net/brysonsteck/Resurrection/PlayerListener.java2
-rw-r--r--src/net/brysonsteck/Resurrection/commands/CommandResurrect.java4
5 files changed, 3 insertions, 3 deletions
diff --git a/out/artifacts/Resurrection_jar/Resurrection.jar b/out/artifacts/Resurrection_jar/Resurrection.jar
index c6a45ec..d78d524 100644
--- a/out/artifacts/Resurrection_jar/Resurrection.jar
+++ b/out/artifacts/Resurrection_jar/Resurrection.jar
Binary files differ
diff --git a/out/production/Resurrection/net/brysonsteck/Resurrection/PlayerListener.class b/out/production/Resurrection/net/brysonsteck/Resurrection/PlayerListener.class
index d10fb84..afd2680 100644
--- a/out/production/Resurrection/net/brysonsteck/Resurrection/PlayerListener.class
+++ b/out/production/Resurrection/net/brysonsteck/Resurrection/PlayerListener.class
Binary files differ
diff --git a/out/production/Resurrection/net/brysonsteck/Resurrection/commands/CommandResurrect.class b/out/production/Resurrection/net/brysonsteck/Resurrection/commands/CommandResurrect.class
index 1b500ab..3eed603 100644
--- a/out/production/Resurrection/net/brysonsteck/Resurrection/commands/CommandResurrect.class
+++ b/out/production/Resurrection/net/brysonsteck/Resurrection/commands/CommandResurrect.class
Binary files differ
diff --git a/src/net/brysonsteck/Resurrection/PlayerListener.java b/src/net/brysonsteck/Resurrection/PlayerListener.java
index 58bc405..46e909a 100644
--- a/src/net/brysonsteck/Resurrection/PlayerListener.java
+++ b/src/net/brysonsteck/Resurrection/PlayerListener.java
@@ -20,7 +20,7 @@ public class PlayerListener implements Listener {
public void onDeath(PlayerDeathEvent e) {
System.out.println("Resurrection: A player has died!");
Player p = e.getEntity();
- p.setGameMode(GameMode.SPECTATOR);
+ p.setGameMode(GameMode.ADVENTURE);
Long timeOfDeath = System.currentTimeMillis();
Long resurrectionTime = timeOfDeath + 86400000;
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);