Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Modified by SkyeDarkhawk
- * This modification fixes the output to the chat window, and does it cleanly.
- * This should fix the output of commands like /who, /playerlist, and some plugins.
- * This method should replace the existing method in ONetServerHandler.java
- */
- public void msg(String msg) {
- if (msg.length() >= 119){
- String cutMsg = msg.substring(0,118);
- int finalCut = cutMsg.lastIndexOf(" ");
- String subCut = cutMsg.substring(0, finalCut);
- String newMsg = msg.substring(finalCut + 1);
- b(new OPacket3Chat(subCut));
- msg(newMsg);
- }
- else
- b(new OPacket3Chat(msg));
- }
Advertisement
Add Comment
Please, Sign In to add comment