Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
1package net.minecraft.server;
2
3import java.io.DataInputStream;
4import java.io.DataOutputStream;
5import java.io.IOException;
6
7public class Packet255KickDisconnect extends Packet {
8
9 public String a;
10
11 public Packet255KickDisconnect() {
12 }
13
14 public Packet255KickDisconnect(String s) {
15 this.a = s;
16 }
17
18 public void a(DataInputStream datainputstream) throws IOException {
19 // uberbukkit
20 if (this.pvn >= 11) {
21 this.a = a(datainputstream, 100);
22 } else {
23 this.a = datainputstream.readUTF();
24 }
25 }
26
27 public void a(DataOutputStream dataoutputstream) throws IOException {
28 // uberbukkit
29 if (this.pvn >= 11) {
30 a(this.a, dataoutputstream);
31 } else {
32 dataoutputstream.writeUTF(this.a);
33 }
34 }
35
36 public void a(NetHandler nethandler) {
37 nethandler.a(this);
38 }
39
40 public int a() {
41 return this.a.length();
42 }
43}