Пример #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);
   }
 }
Пример #2
0
 public void sendMsg(Player player, String msg) {
   for (String line : ChatTools.color(Colors.Gold + "[Towny] " + Colors.Green + msg))
     player.sendMessage(line);
 }
Пример #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);
 }