diff options
author | Bryson Steck <steck.bryson@gmail.com> | 2021-11-29 13:24:25 -0700 |
---|---|---|
committer | Bryson Steck <steck.bryson@gmail.com> | 2021-11-29 13:24:25 -0700 |
commit | 9484cb4152976afc2acb3e9102873266fd5cb09d (patch) | |
tree | 18c3f303e9dce833f0e023685e5af398b2372cb9 | |
parent | 3a9878aebc60f3c4211efb92993d0acdb792f108 (diff) | |
download | resurrection-9484cb4152976afc2acb3e9102873266fd5cb09d.tar resurrection-9484cb4152976afc2acb3e9102873266fd5cb09d.tar.gz resurrection-9484cb4152976afc2acb3e9102873266fd5cb09d.tar.bz2 |
added prefix and changed sound
-rw-r--r-- | out/artifacts/Resurrection_jar/Resurrection.jar | bin | 1605881 -> 1605889 bytes | |||
-rw-r--r-- | src/net/brysonsteck/Resurrection/player/PlayerListener.java | 12 | ||||
-rw-r--r-- | src/net/brysonsteck/Resurrection/plugin.yml | 1 |
3 files changed, 7 insertions, 6 deletions
diff --git a/out/artifacts/Resurrection_jar/Resurrection.jar b/out/artifacts/Resurrection_jar/Resurrection.jar Binary files differindex 5480e21..8beee52 100644 --- a/out/artifacts/Resurrection_jar/Resurrection.jar +++ b/out/artifacts/Resurrection_jar/Resurrection.jar diff --git a/src/net/brysonsteck/Resurrection/player/PlayerListener.java b/src/net/brysonsteck/Resurrection/player/PlayerListener.java index b33a32d..5135357 100644 --- a/src/net/brysonsteck/Resurrection/player/PlayerListener.java +++ b/src/net/brysonsteck/Resurrection/player/PlayerListener.java @@ -130,15 +130,15 @@ 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!"); if (p.getBedSpawnLocation() != null) { p.teleport(p.getBedSpawnLocation()); } else { p.teleport(spawn); } + for(Player p : Bukkit.getOnlinePlayers()){ + p.playSound(p.getLocation(), Sound.ENTITY_ENDER_DRAGON_GROWL, 1, 0); + } } }.runTaskLater(JavaPlugin.getProvidingPlugin(Resurrection.class), timeToResurrection); @@ -221,15 +221,15 @@ 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!"); if (p.getBedSpawnLocation() != null) { p.teleport(p.getBedSpawnLocation()); } else { p.teleport(spawn); } + for(Player p : Bukkit.getOnlinePlayers()){ + p.playSound(p.getLocation(), Sound.ENTITY_ENDER_DRAGON_GROWL, 1, 0); + } } }.runTaskLater(JavaPlugin.getProvidingPlugin(Resurrection.class), timeToResurrection); diff --git a/src/net/brysonsteck/Resurrection/plugin.yml b/src/net/brysonsteck/Resurrection/plugin.yml index b436e22..5658ae7 100644 --- a/src/net/brysonsteck/Resurrection/plugin.yml +++ b/src/net/brysonsteck/Resurrection/plugin.yml @@ -5,6 +5,7 @@ version: '1.1.1' website: https://brysonsteck.net/resurrection.html description: Makes players wait large amounts of time before respawning! database: false +prefix: Resurrection commands: about: |