Don't disconnect a player if they're already disconnected (fixes BUKKIT-43)
Dieser Commit ist enthalten in:
Ursprung
6ea3cec762
Commit
6f79ca5c54
@ -152,6 +152,8 @@ public class ServerConfigurationManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String disconnect(EntityPlayer entityplayer) { // CraftBukkit - changed return type
|
public String disconnect(EntityPlayer entityplayer) { // CraftBukkit - changed return type
|
||||||
|
if (entityplayer.netServerHandler.disconnected) return null; // CraftBukkit - exploitsies fix
|
||||||
|
|
||||||
// CraftBukkit start
|
// CraftBukkit start
|
||||||
// Quitting must be before we do final save of data, in case plugins need to modify it
|
// Quitting must be before we do final save of data, in case plugins need to modify it
|
||||||
this.getPlayerManager(entityplayer.dimension).removePlayer(entityplayer);
|
this.getPlayerManager(entityplayer.dimension).removePlayer(entityplayer);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren