From 85db0ad613c544918298ebaa3d43f9206455f5a9 Mon Sep 17 00:00:00 2001 From: cnr Date: Tue, 12 Jul 2016 15:51:47 -0500 Subject: [PATCH] Remove global rawr --- .../globalpacket/GlobalPacketManager.java | 2 - .../globalpacket/listeners/GlobalRawr.java | 50 ------------------- 2 files changed, 52 deletions(-) delete mode 100644 Plugins/Mineplex.Core/src/mineplex/core/globalpacket/listeners/GlobalRawr.java diff --git a/Plugins/Mineplex.Core/src/mineplex/core/globalpacket/GlobalPacketManager.java b/Plugins/Mineplex.Core/src/mineplex/core/globalpacket/GlobalPacketManager.java index b05a3d4ac..29a908e16 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/globalpacket/GlobalPacketManager.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/globalpacket/GlobalPacketManager.java @@ -16,7 +16,6 @@ import mineplex.core.globalpacket.command.GlobalPacketCommand; import mineplex.core.globalpacket.listeners.GlobalGiveCoins; import mineplex.core.globalpacket.listeners.GlobalGiveGems; import mineplex.core.globalpacket.listeners.GlobalGiveItem; -import mineplex.core.globalpacket.listeners.GlobalRawr; import mineplex.core.globalpacket.redis.GlobalPacketHandler; import mineplex.core.globalpacket.redis.GlobalPacketMessage; import mineplex.core.inventory.InventoryManager; @@ -49,7 +48,6 @@ public class GlobalPacketManager extends MiniPlugin getPluginManager().registerEvents(new GlobalGiveItem(inventoryManager, _rewardManager), getPlugin()); getPluginManager().registerEvents(new GlobalGiveGems(donationManager), getPlugin()); getPluginManager().registerEvents(new GlobalGiveCoins(donationManager, clientManager), getPlugin()); - getPluginManager().registerEvents(new GlobalRawr(), getPlugin()); } public void callGlobalCommand(Player caller, String[] args) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/globalpacket/listeners/GlobalRawr.java b/Plugins/Mineplex.Core/src/mineplex/core/globalpacket/listeners/GlobalRawr.java deleted file mode 100644 index ffba8fb83..000000000 --- a/Plugins/Mineplex.Core/src/mineplex/core/globalpacket/listeners/GlobalRawr.java +++ /dev/null @@ -1,50 +0,0 @@ -package mineplex.core.globalpacket.listeners; - -import org.bukkit.entity.Player; -import org.bukkit.event.EventHandler; -import org.bukkit.event.Listener; - -import mineplex.core.common.util.F; -import mineplex.core.common.util.UtilPlayer; -import mineplex.core.common.util.UtilServer; -import mineplex.core.common.util.UtilTextMiddle; -import mineplex.core.globalpacket.event.GlobalPacketEvent; - -/** - * Created by William (WilliamTiger). - * 18/11/15 - */ -public class GlobalRawr implements Listener -{ - - @EventHandler - public void globalRawr(GlobalPacketEvent e) - { - if (e.getParts() == null || e.getParts().length < 1) - return; - - if (!e.getParts()[0].equalsIgnoreCase("rawr")) - return; - - if (e.getParts().length < 2) - { - if (e.getCaller() != null) - UtilPlayer.message(e.getCaller(), F.main("Global", "/global rawr ")); - - return; - } - - String msg = ""; - for (int i = 1; i < e.getParts().length; i++) - { - msg += e.getParts()[i] + " "; - } - msg = msg.trim(); - - for (Player p : UtilServer.getPlayers()) - { - UtilTextMiddle.display("§6§lRAWR!", "§e" + msg, p); - } - } - -}