aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2021-06-06 18:50:47 -0600
committerBryson Steck <steck.bryson@gmail.com>2021-06-06 18:50:47 -0600
commit357ef1da6c37080343d40bfcbb1675b62ab32494 (patch)
treea0bd04a8c55cb362a7bad25109b3fb7b3202da7b
parent18704e791799ea6763de7d36e682702365c38b23 (diff)
downloadresurrection-357ef1da6c37080343d40bfcbb1675b62ab32494.tar
resurrection-357ef1da6c37080343d40bfcbb1675b62ab32494.tar.gz
resurrection-357ef1da6c37080343d40bfcbb1675b62ab32494.tar.bz2
trying initializing first
-rw-r--r--out/artifacts/Resurrection_jar/Resurrection.jarbin1335783 -> 1335861 bytes
-rw-r--r--out/production/Resurrection/net/brysonsteck/Resurrection/PlayerListener.classbin3034 -> 3143 bytes
-rw-r--r--src/net/brysonsteck/Resurrection/PlayerListener.java9
3 files changed, 6 insertions, 3 deletions
diff --git a/out/artifacts/Resurrection_jar/Resurrection.jar b/out/artifacts/Resurrection_jar/Resurrection.jar
index 3130906..9162506 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 5d42741..2955902 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/src/net/brysonsteck/Resurrection/PlayerListener.java b/src/net/brysonsteck/Resurrection/PlayerListener.java
index 0aa1bdd..c48f303 100644
--- a/src/net/brysonsteck/Resurrection/PlayerListener.java
+++ b/src/net/brysonsteck/Resurrection/PlayerListener.java
@@ -34,9 +34,12 @@ public class PlayerListener implements Listener {
Player p = e.getPlayer();
p.setGameMode(GameMode.ADVENTURE);
- p.addPotionEffect(new PotionEffect(PotionEffectType.INVISIBILITY, 200, 10, false));
- p.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, 200, 10, false));
- p.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 200, 10, false));
+ 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);
+ invisibility.apply(p);
+ blindness.apply(p);
+ slowness.apply(p);
p.setNoDamageTicks(1728000);
}