Don't disconnect a player if they're already disconnected (fixes BUKKIT-43)

This commit is contained in:
Nathan Adams 2011-12-01 22:35:19 +00:00
parent 6ea3cec762
commit 6f79ca5c54

View File

@ -152,6 +152,8 @@ public class ServerConfigurationManager {
}
public String disconnect(EntityPlayer entityplayer) { // CraftBukkit - changed return type
if (entityplayer.netServerHandler.disconnected) return null; // CraftBukkit - exploitsies fix
// CraftBukkit start
// Quitting must be before we do final save of data, in case plugins need to modify it
this.getPlayerManager(entityplayer.dimension).removePlayer(entityplayer);