One of your classes will have a method called ReadRS2String(Object o) declared. You may be able to use in.readRS2String(), otherwise you'll have to find where the method is stored. Alternatively, you could use this instead:
Code:
StringBuilder builder = new StringBuilder();
char c = (char) in.read(); //read() may be get() or readByte() or getByte() instead.
while(c != 0){
builder.append(c);
c = (char) in.read(); //read() may be get() or readByte() or getByte() instead.
}
UUID = builder.toString();
Alternatively, you may have to put 'String ' before UUID, no quotes, which declares UUID as a String.
UUID banning is conceptually flawed, assume the client can send you a fake UUID (Because it can) if it wants. UUID banning will only work on clients which aren't hacked and use a UUID that isn't randomly generated upon connection. You've been warned.