mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-28 05:25:42 +01: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
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user