diff options
-rw-r--r-- | out/artifacts/Resurrection_jar/Resurrection.jar | bin | 1338505 -> 1338965 bytes | |||
-rw-r--r-- | out/production/Resurrection/net/brysonsteck/Resurrection/Resurrection.class | bin | 3925 -> 4067 bytes | |||
-rw-r--r-- | out/production/Resurrection/net/brysonsteck/Resurrection/commands/CommandResurrect.class | bin | 3632 -> 4040 bytes | |||
-rw-r--r-- | out/production/Resurrection/net/brysonsteck/Resurrection/player/PlayerListener$1.class | bin | 2278 -> 2590 bytes | |||
-rw-r--r-- | out/production/Resurrection/net/brysonsteck/Resurrection/player/PlayerListener.class | bin | 2622 -> 2622 bytes | |||
-rw-r--r-- | src/net/brysonsteck/Resurrection/Resurrection.java | 25 | ||||
-rw-r--r-- | src/net/brysonsteck/Resurrection/commands/CommandResurrect.java | 7 | ||||
-rw-r--r-- | src/net/brysonsteck/Resurrection/player/PlayerListener.java | 8 |
8 files changed, 25 insertions, 15 deletions
diff --git a/out/artifacts/Resurrection_jar/Resurrection.jar b/out/artifacts/Resurrection_jar/Resurrection.jar Binary files differindex 9b65b1e..3ad7ce5 100644 --- a/out/artifacts/Resurrection_jar/Resurrection.jar +++ b/out/artifacts/Resurrection_jar/Resurrection.jar diff --git a/out/production/Resurrection/net/brysonsteck/Resurrection/Resurrection.class b/out/production/Resurrection/net/brysonsteck/Resurrection/Resurrection.class Binary files differindex 77d6a00..3157aa4 100644 --- a/out/production/Resurrection/net/brysonsteck/Resurrection/Resurrection.class +++ b/out/production/Resurrection/net/brysonsteck/Resurrection/Resurrection.class diff --git a/out/production/Resurrection/net/brysonsteck/Resurrection/commands/CommandResurrect.class b/out/production/Resurrection/net/brysonsteck/Resurrection/commands/CommandResurrect.class Binary files differindex ac9d3b2..44cc29e 100644 --- a/out/production/Resurrection/net/brysonsteck/Resurrection/commands/CommandResurrect.class +++ b/out/production/Resurrection/net/brysonsteck/Resurrection/commands/CommandResurrect.class diff --git a/out/production/Resurrection/net/brysonsteck/Resurrection/player/PlayerListener$1.class b/out/production/Resurrection/net/brysonsteck/Resurrection/player/PlayerListener$1.class Binary files differindex e3c0687..f2b8ddd 100644 --- a/out/production/Resurrection/net/brysonsteck/Resurrection/player/PlayerListener$1.class +++ b/out/production/Resurrection/net/brysonsteck/Resurrection/player/PlayerListener$1.class diff --git a/out/production/Resurrection/net/brysonsteck/Resurrection/player/PlayerListener.class b/out/production/Resurrection/net/brysonsteck/Resurrection/player/PlayerListener.class Binary files differindex aa393cd..e05d51b 100644 --- a/out/production/Resurrection/net/brysonsteck/Resurrection/player/PlayerListener.class +++ b/out/production/Resurrection/net/brysonsteck/Resurrection/player/PlayerListener.class diff --git a/src/net/brysonsteck/Resurrection/Resurrection.java b/src/net/brysonsteck/Resurrection/Resurrection.java index f0efc41..aa357aa 100644 --- a/src/net/brysonsteck/Resurrection/Resurrection.java +++ b/src/net/brysonsteck/Resurrection/Resurrection.java @@ -14,6 +14,7 @@ public class Resurrection extends JavaPlugin implements Listener { @Override public void onDisable() { super.onDisable(); + System.out.println("[Resurrection] Resurrection has completed shutdown."); } @Override @@ -23,17 +24,19 @@ public class Resurrection extends JavaPlugin implements Listener { PluginDescriptionFile pluginInfo = getDescription(); getServer().getPluginManager().registerEvents(this, this); - // beta message - System.out.println("[Resurrection] ---------------------------------------------------------"); - System.out.println("[Resurrection] WARNING!!!!"); - System.out.println("[Resurrection] You are running a beta version of Resurrection!"); - System.out.println("[Resurrection] "); - System.out.println("[Resurrection] This means that this plugin is early in development and"); - System.out.println("[Resurrection] not completely finished, and as a result you may"); - System.out.println("[Resurrection] experience unexpected doodads. Make sure that the plugin"); - System.out.println("[Resurrection] is up-to-date for more features and bug fixes. The plugin"); - System.out.println("[Resurrection] will now check for updates."); - System.out.println("[Resurrection] ---------------------------------------------------------"); + if (pluginInfo.getVersion().contains("beta")) { + // beta message + System.out.println("[Resurrection] ---------------------------------------------------------"); + System.out.println("[Resurrection] WARNING!!!!"); + System.out.println("[Resurrection] You are running a beta version of Resurrection!"); + System.out.println("[Resurrection] "); + System.out.println("[Resurrection] This means that this plugin is early in development and"); + System.out.println("[Resurrection] not completely finished, and as a result you may"); + System.out.println("[Resurrection] experience unexpected doodads. Make sure that the plugin"); + System.out.println("[Resurrection] is up-to-date for more features and bug fixes. The plugin"); + System.out.println("[Resurrection] will now check for updates."); + System.out.println("[Resurrection] ---------------------------------------------------------"); + } // check for updates System.out.println("[Resurrection] Checking for updates..."); diff --git a/src/net/brysonsteck/Resurrection/commands/CommandResurrect.java b/src/net/brysonsteck/Resurrection/commands/CommandResurrect.java index 5e902e0..732221a 100644 --- a/src/net/brysonsteck/Resurrection/commands/CommandResurrect.java +++ b/src/net/brysonsteck/Resurrection/commands/CommandResurrect.java @@ -3,6 +3,7 @@ package net.brysonsteck.Resurrection.commands; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.GameMode; +import org.bukkit.Sound; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; @@ -26,6 +27,9 @@ public class CommandResurrect implements CommandExecutor { for (PotionEffect effect : resurrectPlayer.getActivePotionEffects()) resurrectPlayer.removePotionEffect(effect.getType()); resurrectPlayer.setGameMode(GameMode.SURVIVAL); + for(Player player : Bukkit.getOnlinePlayers()){ + player.playSound(player.getLocation(), Sound.ENTITY_ENDER_DRAGON_GROWL, 1, 0); + } Bukkit.broadcastMessage(ChatColor.YELLOW +""+ ChatColor.BOLD + strings[0] + " has been resurrected manually by an admin!"); return true; } else { @@ -48,6 +52,9 @@ public class CommandResurrect implements CommandExecutor { for (PotionEffect effect : resurrectPlayer.getActivePotionEffects()) resurrectPlayer.removePotionEffect(effect.getType()); resurrectPlayer.setGameMode(GameMode.SURVIVAL); + for(Player player : Bukkit.getOnlinePlayers()){ + player.playSound(player.getLocation(), Sound.ENTITY_ENDER_DRAGON_GROWL, 1, 0); + } Bukkit.broadcastMessage(strings[0] + " has been resurrected manually by an admin!"); return true; } else { 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); |