From fc5dc3c904ba4a1361bedb60cbb2a242f1cc975b Mon Sep 17 00:00:00 2001 From: cerevisiae Date: Wed, 8 Dec 2010 03:52:12 -0600 Subject: [PATCH] Removed depreciated vMinecraftAnnouncements.java --- vMinecraftAnnouncements.java | 59 ------------------------------------ 1 file changed, 59 deletions(-) delete mode 100644 vMinecraftAnnouncements.java diff --git a/vMinecraftAnnouncements.java b/vMinecraftAnnouncements.java deleted file mode 100644 index 2a51a1026..000000000 --- a/vMinecraftAnnouncements.java +++ /dev/null @@ -1,59 +0,0 @@ -//===================================================================== -//Class: vMinecraftAnnouncements -//Use: Encapsulates all announcements broadcast when commands are -// run -//Author: nossr50, TrapAlice, cerevisiae -//===================================================================== -public class vMinecraftAnnouncements extends vMinecraftCommands{ - - //===================================================================== - //Function: onCommand - //Input: Player player: The player calling the command - // String[] split: The arguments - //Output: boolean: If the user has access to the command - // and it is enabled - //Use: Checks if /kick, /ban, /ipban, and /time are run and - // displays a global message - //===================================================================== - public boolean onCommand(Player player, String[] split) { - if(!player.canUseCommand(split[0])) { - return false; - } - //Only run if the global message feature is enabled - //if(vMinecraftSettings.getInstance().globalmessages()) - //{ - //Global messages that should only parse when a command can be successful - if(split[0].equalsIgnoreCase("/kick")) { - Player playerTarget = etc.getServer().matchPlayer(split[1]); - if (playerTarget != null && !playerTarget.hasControlOver(player)) { - vMinecraftChat.gmsg(player, player.getColor()+player.getName()+Colors.Blue+" has kicked "+Colors.Red+playerTarget.getColor()+playerTarget.getName()); - } - } - if(split[0].equalsIgnoreCase("/ban")) { - Player playerTarget = etc.getServer().matchPlayer(split[1]); - if (playerTarget != null && !playerTarget.hasControlOver(player)) { - vMinecraftChat.gmsg(player, player.getColor()+player.getName()+Colors.Blue+" has banned "+Colors.Red+playerTarget.getColor()+playerTarget.getName()); - } - } - if(split[0].equalsIgnoreCase("/ipban")) { - Player playerTarget = etc.getServer().matchPlayer(split[1]); - if (playerTarget != null && !playerTarget.hasControlOver(player)) { - vMinecraftChat.gmsg(player, player.getColor()+player.getName()+Colors.Blue+" has IP banned "+Colors.Red+playerTarget.getColor()+playerTarget.getName()); - } - } - if(split[0].equalsIgnoreCase("/time")) { - if (split.length <= 2) { - vMinecraftChat.gmsg(player, Colors.Blue+"Time changes thanks to "+player.getColor()+player.getName()); - } - } - if(split[0].equalsIgnoreCase("/tp")){ - if (player.canUseCommand("/tp")){ - if(etc.getServer().getPlayer(split[1]) != null) - vMinecraftChat.gmsg(player, player.getName() + Colors.Blue+" has teleported to " + etc.getServer().getPlayer(split[1]).getName()); - } - } - //} - - return true; - } -}