@Override
 public boolean canCommandSenderUseCommand(ICommandSender sender) {
   if (sender instanceof EntityPlayer)
     return PermissionsAPI.checkPermAllowed(
         new PermQueryPlayer((EntityPlayer) sender, getCommandPerm()));
   else return true;
 }
 public boolean checkCommandPerm(EntityPlayer player) {
   return PermissionsAPI.checkPermAllowed(new PermQueryPlayer(player, getCommandPerm()));
 }