|
|
@ -12,12 +12,12 @@ import com.entryrise.afkguard.utils.MathUtils; |
|
|
|
|
|
|
|
public class CommandListener implements CommandExecutor { |
|
|
|
|
|
|
|
private static Set<Player> debug |
|
|
|
// private static Set<Player> debug
|
|
|
|
|
|
|
|
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { |
|
|
|
Player p = sender instanceof Player ? (Player) sender : null; |
|
|
|
|
|
|
|
if (p == null) { |
|
|
|
if (p == null || !p.hasPermission("afkguard.admin")) { |
|
|
|
sender.sendMessage(Main.PREFIX + "Can't run from console"); |
|
|
|
return true; |
|
|
|
} |
|
|
|