if (!(message instanceof FPacket)) {
Server.error(new Exception("Wrong packet type! "
+ message.toString()));
return;
}
FPacket p = (FPacket) message;
try {
String s = String.valueOf(p.getID());
if (p.countParameters() > 0) {
for (String param : p.getParameters()) {
s += " " + URLEncoder.encode(param, "UTF-8");
}
}
byte[] data = s.getBytes();