public static void logError(String s) { if (logListener == null) { if (System.getProperty("logErrors", "true").equalsIgnoreCase("true")) { s = StringUtil.toBasicLatin(s); realErr.println(s); } } else { logListener.onBattleError(new BattleErrorEvent(s)); } }