diff --git a/CommandWhitelistBukkit/pom.xml b/CommandWhitelistBukkit/pom.xml index acfffd6..1b3f1fd 100644 --- a/CommandWhitelistBukkit/pom.xml +++ b/CommandWhitelistBukkit/pom.xml @@ -6,7 +6,7 @@ eu.endermite.commandwhitelist CommandWhitelist - 2.2.3 + 2.2.4 Bukkit diff --git a/CommandWhitelistBukkit/src/main/java/eu/endermite/commandwhitelist/bukkit/listeners/protocollib/PacketCommandSendListener.java b/CommandWhitelistBukkit/src/main/java/eu/endermite/commandwhitelist/bukkit/listeners/protocollib/PacketCommandSendListener.java index ff2b808..182fcfa 100644 --- a/CommandWhitelistBukkit/src/main/java/eu/endermite/commandwhitelist/bukkit/listeners/protocollib/PacketCommandSendListener.java +++ b/CommandWhitelistBukkit/src/main/java/eu/endermite/commandwhitelist/bukkit/listeners/protocollib/PacketCommandSendListener.java @@ -27,7 +27,8 @@ public class PacketCommandSendListener { @Override public void onPacketSending(PacketEvent event) { Player player = event.getPlayer(); - if (!event.isPlayerTemporary() && player.hasPermission(CWPermission.BYPASS.permission())) return; + if (event.isPlayerTemporary()) return; + if (player.hasPermission(CWPermission.BYPASS.permission())) return; HashSet commandList = CommandWhitelistBukkit.getCommands(player); PacketContainer packet = event.getPacket(); RootCommandNode node = (RootCommandNode) packet.getModifier().getValues().get(0); diff --git a/CommandWhitelistCommon/pom.xml b/CommandWhitelistCommon/pom.xml index cb4310d..bdb81bc 100644 --- a/CommandWhitelistCommon/pom.xml +++ b/CommandWhitelistCommon/pom.xml @@ -6,7 +6,7 @@ eu.endermite.commandwhitelist CommandWhitelist - 2.2.3 + 2.2.4 Common diff --git a/CommandWhitelistVelocity/pom.xml b/CommandWhitelistVelocity/pom.xml index b29936c..f8f2fb3 100644 --- a/CommandWhitelistVelocity/pom.xml +++ b/CommandWhitelistVelocity/pom.xml @@ -6,7 +6,7 @@ eu.endermite.commandwhitelist CommandWhitelist - 2.2.3 + 2.2.4 Velocity diff --git a/CommandWhitelistWaterfall/pom.xml b/CommandWhitelistWaterfall/pom.xml index 896de22..26e3c61 100644 --- a/CommandWhitelistWaterfall/pom.xml +++ b/CommandWhitelistWaterfall/pom.xml @@ -6,7 +6,7 @@ eu.endermite.commandwhitelist CommandWhitelist - 2.2.3 + 2.2.4 Waterfall diff --git a/pom.xml b/pom.xml index 4c97276..38f4c09 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ eu.endermite.commandwhitelist CommandWhitelist - 2.2.3 + 2.2.4 CommandWhitelistCommon CommandWhitelistBukkit