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); } }
public void sendMsg(Player player, String msg) { for (String line : ChatTools.color(Colors.Gold + "[Towny] " + Colors.Green + msg)) player.sendMessage(line); }
public void sendErrorMsg(Player player, String msg) { for (String line : ChatTools.color(Colors.Gold + "[Towny] " + Colors.Rose + msg)) player.sendMessage(line); sendDevMsg(msg); }