diff --git a/src/main/java/net/coreprotect/command/LookupCommand.java b/src/main/java/net/coreprotect/command/LookupCommand.java index 5680af9..d079e35 100755 --- a/src/main/java/net/coreprotect/command/LookupCommand.java +++ b/src/main/java/net/coreprotect/command/LookupCommand.java @@ -267,6 +267,11 @@ public class LookupCommand { } if (argAction.contains(4) && argAction.contains(11)) { // a:inventory + if (argUsers.size() == 0) { + Chat.sendMessage(player, Color.DARK_AQUA + "CoreProtect " + Color.WHITE + "- " + Phrase.build(Phrase.MISSING_ACTION_USER)); + return; + } + argExclude.put(Material.FIRE, false); argExclude.put(Material.WATER, false); argExclude.put(Material.FARMLAND, false); @@ -572,6 +577,13 @@ public class LookupCommand { } } c++; + + if (argAction.contains(4) && argAction.contains(11)) { + if (ruser.startsWith("#")) { + Chat.sendMessage(player, Color.DARK_AQUA + "CoreProtect " + Color.WHITE + "- " + Phrase.build(Phrase.INVALID_USERNAME, ruser)); + return; + } + } } long timeStart = -1;