Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Commit

Permalink
Support for future versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
frafol authored Feb 11, 2023
1 parent d3ff1df commit 64984d4
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ private void onCommand(@NotNull CommandExecuteEvent event) {

if (PlayerCache.getCommandExecuted().containsKey(player.getUniqueId()) && PlayerCache.getCommandExecuted().get(player.getUniqueId()) >= 10) {

if (player.getProtocolVersion() == ProtocolVersion.MINECRAFT_1_19 ||
player.getProtocolVersion() == ProtocolVersion.MINECRAFT_1_19_1 ||
player.getProtocolVersion() == ProtocolVersion.MINECRAFT_1_19_3) {
if (player.getProtocolVersion().getProtocol() >= ProtocolVersion.MINECRAFT_1_19.getProtocol()) {

player.disconnect(Component.text(""));
return;
Expand Down

0 comments on commit 64984d4

Please sign in to comment.