remove calls to DoNotUse methods

This commit is contained in:
Jake Potrebic
2024-04-27 18:18:20 -07:00
parent dcbe8f75f2
commit 57a40dbdd3
4 changed files with 26 additions and 5 deletions

View File

@@ -144,6 +144,15 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
// Paper start - adventure pack callbacks
// call the callbacks before the previously-existing event so the event has final say
@@ -0,0 +0,0 @@ public abstract class ServerCommonPacketListenerImpl implements ServerCommonPack
return;
}
// CraftBukkit end
- this.disconnect(ServerCommonPacketListenerImpl.DISCONNECT_UNEXPECTED_QUERY);
+ this.disconnect(ServerCommonPacketListenerImpl.DISCONNECT_UNEXPECTED_QUERY, org.bukkit.event.player.PlayerKickEvent.Cause.INVALID_COOKIE); // Paper - kick event cause
}
protected void keepConnectionAlive() {
@@ -0,0 +0,0 @@ public abstract class ServerCommonPacketListenerImpl implements ServerCommonPack
if (!this.isSingleplayerOwner() && elapsedTime >= KEEPALIVE_LIMIT) { // Paper - check keepalive limit, don't fire if already disconnected
if (this.keepAlivePending && !this.processedDisconnect) { // Paper