mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Trying out making announcements extend commands to see if it will fix global commands, also added in global messages for /tp.
This commit is contained in:
parent
d65252d289
commit
518e7ae18c
@ -4,7 +4,7 @@
|
|||||||
// run
|
// run
|
||||||
//Author: nossr50, TrapAlice, cerevisiae
|
//Author: nossr50, TrapAlice, cerevisiae
|
||||||
//=====================================================================
|
//=====================================================================
|
||||||
public class vMinecraftAnnouncements {
|
public class vMinecraftAnnouncements extends vMinecraftCommands{
|
||||||
|
|
||||||
//=====================================================================
|
//=====================================================================
|
||||||
//Function: onCommand
|
//Function: onCommand
|
||||||
@ -46,6 +46,12 @@ public class vMinecraftAnnouncements {
|
|||||||
vMinecraftChat.gmsg(player, Colors.Blue+"Time changes thanks to "+player.getColor()+player.getName());
|
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;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user