Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Kick on receiving invalid creative action packet #68

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: RoccoDev <hey@rocco.dev>
Date: Mon, 12 Dec 2022 15:30:23 -0300
Subject: [PATCH] Kick after receiving invalid creative action packet


diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java
index 23bd5d11f8b909817855f593adc51d3ca5d9f976..77e778fa2b365928bc5b3fae54fbdfbc7d7230a3 100644
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
@@ -1875,6 +1875,10 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList
entityitem.j();
}
}
+ // PandaSpigot start - Kick after receiving invalid creative action packet
+ } else {
+ disconnect("Not in creative mode");
+ // PandaSpigot end
}

}