mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-15 07:01:36 +08:00
Don't disconnect a player if they're already disconnected (fixes BUKKIT-43)
This commit is contained in:
parent
6ea3cec762
commit
6f79ca5c54
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user