aboutsummaryrefslogtreecommitdiff
path: root/src/net/brysonsteck/Resurrection/player
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2021-06-15 20:23:28 -0600
committerBryson Steck <steck.bryson@gmail.com>2021-06-15 20:23:28 -0600
commit55fe6d900138477d3cd63b0d36b2219761546724 (patch)
treed90ff509243680f043f180074ff25a77a5beb3d5 /src/net/brysonsteck/Resurrection/player
parenta49057361f0e37f90de5f50f7172f04b0a2d389e (diff)
downloadresurrection-55fe6d900138477d3cd63b0d36b2219761546724.tar
resurrection-55fe6d900138477d3cd63b0d36b2219761546724.tar.gz
resurrection-55fe6d900138477d3cd63b0d36b2219761546724.tar.bz2
added sounds to resurrection event
Diffstat (limited to 'src/net/brysonsteck/Resurrection/player')
-rw-r--r--src/net/brysonsteck/Resurrection/player/PlayerListener.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/brysonsteck/Resurrection/player/PlayerListener.java b/src/net/brysonsteck/Resurrection/player/PlayerListener.java
index 145d39c..a84fa80 100644
--- a/src/net/brysonsteck/Resurrection/player/PlayerListener.java
+++ b/src/net/brysonsteck/Resurrection/player/PlayerListener.java
@@ -1,10 +1,7 @@
package net.brysonsteck.Resurrection.player;
import net.brysonsteck.Resurrection.Resurrection;
-import org.bukkit.Bukkit;
-import org.bukkit.ChatColor;
-import org.bukkit.GameMode;
-import org.bukkit.Location;
+import org.bukkit.*;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
@@ -40,6 +37,9 @@ public class PlayerListener implements Listener {
for (PotionEffect effect : p.getActivePotionEffects())
p.removePotionEffect(effect.getType());
p.setGameMode(GameMode.SURVIVAL);
+ for(Player p : Bukkit.getOnlinePlayers()){
+ p.playSound(p.getLocation(), Sound.ENTITY_ENDER_DRAGON_GROWL, 1, 0);
+ }
Bukkit.broadcastMessage(ChatColor.YELLOW +""+ ChatColor.BOLD + p.getDisplayName() + " has resurrected!");
}
}.runTaskLater(JavaPlugin.getProvidingPlugin(Resurrection.class), 1728000);