aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--out/artifacts/Resurrection_jar/Resurrection.jarbin1338111 -> 1338212 bytes
-rw-r--r--out/production/Resurrection/net/brysonsteck/Resurrection/player/PlayerListener$1.classbin1349 -> 1346 bytes
-rw-r--r--out/production/Resurrection/net/brysonsteck/Resurrection/player/PlayerListener.classbin3939 -> 3994 bytes
-rw-r--r--out/production/Resurrection/net/brysonsteck/Resurrection/player/ResurrectPlayer.classbin1060 -> 1194 bytes
-rw-r--r--src/net/brysonsteck/Resurrection/player/PlayerListener.java10
-rw-r--r--src/net/brysonsteck/Resurrection/player/ResurrectPlayer.java1
6 files changed, 6 insertions, 5 deletions
diff --git a/out/artifacts/Resurrection_jar/Resurrection.jar b/out/artifacts/Resurrection_jar/Resurrection.jar
index b8e1c57..2bfa11a 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/player/PlayerListener$1.class b/out/production/Resurrection/net/brysonsteck/Resurrection/player/PlayerListener$1.class
index 15e2e5c..06c3631 100644
--- a/out/production/Resurrection/net/brysonsteck/Resurrection/player/PlayerListener$1.class
+++ b/out/production/Resurrection/net/brysonsteck/Resurrection/player/PlayerListener$1.class
Binary files differ
diff --git a/out/production/Resurrection/net/brysonsteck/Resurrection/player/PlayerListener.class b/out/production/Resurrection/net/brysonsteck/Resurrection/player/PlayerListener.class
index b1e801e..6eacb7f 100644
--- a/out/production/Resurrection/net/brysonsteck/Resurrection/player/PlayerListener.class
+++ b/out/production/Resurrection/net/brysonsteck/Resurrection/player/PlayerListener.class
Binary files differ
diff --git a/out/production/Resurrection/net/brysonsteck/Resurrection/player/ResurrectPlayer.class b/out/production/Resurrection/net/brysonsteck/Resurrection/player/ResurrectPlayer.class
index 2303a25..7028b20 100644
--- a/out/production/Resurrection/net/brysonsteck/Resurrection/player/ResurrectPlayer.class
+++ b/out/production/Resurrection/net/brysonsteck/Resurrection/player/ResurrectPlayer.class
Binary files differ
diff --git a/src/net/brysonsteck/Resurrection/player/PlayerListener.java b/src/net/brysonsteck/Resurrection/player/PlayerListener.java
index 8bc299f..67a31db 100644
--- a/src/net/brysonsteck/Resurrection/player/PlayerListener.java
+++ b/src/net/brysonsteck/Resurrection/player/PlayerListener.java
@@ -39,7 +39,7 @@ public class PlayerListener implements Listener {
Thread.sleep(5000);
} catch (InterruptedException interruptedException) {
interruptedException.printStackTrace();
- p.sendMessage("Failed to make the thread sleep!");
+ p.sendMessage("[Resurrection] An error has occurred! Please contact the admin. (Failed to make the thread sleep!)");
}
ResurrectPlayer resurrectPlayer = new ResurrectPlayer(p);
}).start();
@@ -53,14 +53,14 @@ public class PlayerListener implements Listener {
new BukkitRunnable() {
@Override
public void run() {
- PotionEffect invisibility = new PotionEffect(PotionEffectType.INVISIBILITY, 200, 10, false);
- PotionEffect blindness = new PotionEffect(PotionEffectType.BLINDNESS, 200, 10, false);
- PotionEffect slowness = new PotionEffect(PotionEffectType.SLOW, 200, 10, false);
+ PotionEffect invisibility = new PotionEffect(PotionEffectType.INVISIBILITY, 100, 10, false);
+ PotionEffect blindness = new PotionEffect(PotionEffectType.BLINDNESS, 100, 10, false);
+ PotionEffect slowness = new PotionEffect(PotionEffectType.SLOW, 100, 10, false);
invisibility.apply(p);
blindness.apply(p);
slowness.apply(p);
}
- }.runTaskLater(JavaPlugin.getProvidingPlugin(Resurrection.class), 20);
+ }.runTaskLater(JavaPlugin.getProvidingPlugin(Resurrection.class), 1);
}
diff --git a/src/net/brysonsteck/Resurrection/player/ResurrectPlayer.java b/src/net/brysonsteck/Resurrection/player/ResurrectPlayer.java
index b47c6af..412387f 100644
--- a/src/net/brysonsteck/Resurrection/player/ResurrectPlayer.java
+++ b/src/net/brysonsteck/Resurrection/player/ResurrectPlayer.java
@@ -8,6 +8,7 @@ import org.bukkit.potion.PotionEffect;
public class ResurrectPlayer {
public ResurrectPlayer(Player p) {
+ p.setGameMode(GameMode.SURVIVAL);
Bukkit.broadcastMessage(p.getDisplayName() + " has resurrected!");
}
}