Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ByteArrayOutputStream b = new ByteArrayOutputStream();
- DataOutputStream out = new DataOutputStream(b);
- try {
- out.writeUTF("subchannel");
- out.writeUTF("sendMessage"); // Subchannel
- out.writeUTF("bansystemmsg");
- out.writeUTF("ban");
- ByteArrayOutputStream msgbytes = new ByteArrayOutputStream();
- DataOutputStream msgout = new DataOutputStream(msgbytes);
- msgout.writeUTF(BanSystem.prefix_ban+"/*/*/="+playername+"/*/*/="+reason+"/*/*/="+creater); // Deine Pluginnachricht
- msgout.writeShort(123);
- out.writeShort(msgbytes.toByteArray().length);
- out.write(msgbytes.toByteArray());
- } catch (IOException e) {
- BanSystem.console.sendMessage(BanSystem.prefix_warn+ e.getStackTrace());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement