public static void sendSessionMsgToDarkstar(SimpleClient playerClient, String text) { try { if (!text.equals("ping")) System.out.println("Sent sess msg to DS server: " + text); ByteBuffer message = Util.encodeString(text); playerClient.send(message); } catch (Exception e) { e.printStackTrace(); } }