From 518e7ae18c40e18deb6314e419a564c3683c90e7 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Tue, 7 Dec 2010 20:24:39 -0800 Subject: [PATCH] Trying out making announcements extend commands to see if it will fix global commands, also added in global messages for /tp. --- vMinecraftAnnouncements.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vMinecraftAnnouncements.java b/vMinecraftAnnouncements.java index 9b78b7fa7..ccaca4bf4 100644 --- a/vMinecraftAnnouncements.java +++ b/vMinecraftAnnouncements.java @@ -4,7 +4,7 @@ // run //Author: nossr50, TrapAlice, cerevisiae //===================================================================== -public class vMinecraftAnnouncements { +public class vMinecraftAnnouncements extends vMinecraftCommands{ //===================================================================== //Function: onCommand @@ -46,6 +46,12 @@ public class vMinecraftAnnouncements { 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;