Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
84f0ccee81
Commit
534b16b153
@ -76,6 +76,7 @@ public class PacketProcessor {
|
|||||||
private int arenaMinZ = Config.ArenaRegion.getMinZ();
|
private int arenaMinZ = Config.ArenaRegion.getMinZ();
|
||||||
|
|
||||||
private boolean tickFinished = false;
|
private boolean tickFinished = false;
|
||||||
|
private int lastPacket = -1;
|
||||||
|
|
||||||
public PacketProcessor(PacketSource source){
|
public PacketProcessor(PacketSource source){
|
||||||
this.source = source;
|
this.source = source;
|
||||||
@ -507,15 +508,16 @@ public class PacketProcessor {
|
|||||||
if(parser != null){
|
if(parser != null){
|
||||||
parser.process();
|
parser.process();
|
||||||
}else{
|
}else{
|
||||||
Bukkit.getLogger().log(Level.SEVERE, "Unknown packet " + packetType + " recieved, closing.");
|
Bukkit.getLogger().log(Level.SEVERE, "Unknown packet " + packetType + " recieved, closing. LastPacket: " + lastPacket);
|
||||||
source.close();
|
source.close();
|
||||||
}
|
}
|
||||||
|
lastPacket = packetType;
|
||||||
}
|
}
|
||||||
} catch (EOFException e) {
|
} catch (EOFException e) {
|
||||||
Bukkit.getLogger().log(Level.INFO, "The FightServer is offline");
|
Bukkit.getLogger().log(Level.INFO, "The FightServer is offline");
|
||||||
source.close();
|
source.close();
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
Bukkit.getLogger().log(Level.WARNING, "Could not recieve packet", e);
|
Bukkit.getLogger().log(Level.WARNING, "Could not recieve packet, LastPacket: " + lastPacket, e);
|
||||||
source.close();
|
source.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren