From 0188e381b25764c4d849c453d41683144d4307cc Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Tue, 11 Jan 2022 11:48:12 -0700 Subject: still working on compatibility, extend copyright --- src/net/brysonsteck/Resurrection/commands/CommandResurrect.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/net/brysonsteck/Resurrection/commands/CommandResurrect.java') diff --git a/src/net/brysonsteck/Resurrection/commands/CommandResurrect.java b/src/net/brysonsteck/Resurrection/commands/CommandResurrect.java index a026d31..371e3c1 100644 --- a/src/net/brysonsteck/Resurrection/commands/CommandResurrect.java +++ b/src/net/brysonsteck/Resurrection/commands/CommandResurrect.java @@ -62,10 +62,10 @@ public class CommandResurrect implements CommandExecutor { resurrectPlayer.setGameMode(GameMode.SURVIVAL); for(Player player : Bukkit.getOnlinePlayers()){ try { - player.playSound(player.getLocation(), Sound.ENTITY_ENDER_DRAGON_GROWL, 1, 0); + player.playSound(player.getLocation(), Sound.ENTITY_ENDERDRAGON_GROWL, 1, 0); } catch (NoSuchFieldError e) { log.warning("NoSuchFieldError encountered, playing Wither noise instead."); - player.playSound(player.getLocation(), Sound.ENTITY_WITHER_DEATH, 1, 0); + player.playSound(player.getLocation(), Sound.WITHER_DEATH, 1, 0); } } Bukkit.broadcastMessage(ChatColor.YELLOW +""+ ChatColor.BOLD + strings[0] + " has been resurrected manually by an admin!"); @@ -114,10 +114,10 @@ public class CommandResurrect implements CommandExecutor { resurrectPlayer.setGameMode(GameMode.SURVIVAL); for(Player player : Bukkit.getOnlinePlayers()){ try { - player.playSound(player.getLocation(), Sound.ENTITY_ENDER_DRAGON_GROWL, 1, 0); + player.playSound(player.getLocation(), Sound.ENTITY_ENDERDRAGON_GROWL, 1, 0); } catch (NoSuchFieldError e) { log.warning("NoSuchFieldError encountered, playing Wither noise instead."); - player.playSound(player.getLocation(), Sound.ENTITY_WITHER_DEATH, 1, 0); + player.playSound(player.getLocation(), Sound.WITHER_DEATH, 1, 0); } } Bukkit.broadcastMessage(strings[0] + " has been resurrected manually by an admin!"); -- cgit v1.2.3