Ejemplo n.º 1
0
 public void sendDevMsg(String msg) {
   if (TownySettings.isDevMode()) {
     Player townyDev = getServer().getPlayer("Shadeness");
     if (townyDev == null) return;
     for (String line : ChatTools.color(Colors.Gold + "[Towny] DevMode: " + Colors.Rose + msg))
       townyDev.sendMessage(line);
   }
 }
Ejemplo n.º 2
0
 public void sendMsg(Player player, String msg) {
   for (String line : ChatTools.color(Colors.Gold + "[Towny] " + Colors.Green + msg))
     player.sendMessage(line);
 }
Ejemplo n.º 3
0
 public void sendErrorMsg(Player player, String msg) {
   for (String line : ChatTools.color(Colors.Gold + "[Towny] " + Colors.Rose + msg))
     player.sendMessage(line);
   sendDevMsg(msg);
 }