public static void sendError(int hash, String message) { if (errText.contains(hash)) { return; } errText.put(hash); try { udpCollect.write( new DataOutputX().writePack(new TextPack(TextTypes.ERROR, hash, message)).toByteArray()); } catch (Exception e) { } }
public static void reset() { errText.clear(); }