mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-28 11:44:42 +02:00
This should make it work properly
This commit is contained in:
@ -56,8 +56,7 @@ public final class CommandUtils {
|
||||
}
|
||||
|
||||
public static boolean hidden(CommandSender sender, Player target, boolean hasPermission) {
|
||||
if (sender instanceof Player && ((Player)sender).canSee(target) && !hasPermission) {
|
||||
sender.sendMessage(LocaleLoader.getString("Inspect.Offline"));
|
||||
if (sender instanceof Player && !((Player)sender).canSee(target) && !hasPermission) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user