mirror of
https://github.com/YouHaveTrouble/CommandWhitelist.git
synced 2026-05-12 06:26:57 +00:00
do not handle temporary players
This commit is contained in:
+2
-1
@@ -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<String> commandList = CommandWhitelistBukkit.getCommands(player);
|
||||
PacketContainer packet = event.getPacket();
|
||||
RootCommandNode<?> node = (RootCommandNode<?>) packet.getModifier().getValues().get(0);
|
||||
|
||||
Reference in New Issue
Block a user