@Override
 public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
   final String[] kicked = NoCheatPlus.getLoginDeniedPlayers();
   if (kicked.length < 100) Arrays.sort(kicked);
   sender.sendMessage(TAG + "Temporarily kicked players:");
   sender.sendMessage(CheckUtils.join(Arrays.asList(kicked), " "));
   return true;
 }
示例#2
0
 /**
  * Quick check for really bad coordinates (actual problem, if true is returned.).
  *
  * @return
  */
 public boolean hasIllegalCoords() {
   return CheckUtils.isBadCoordinate(minX, maxX, minY, maxY, minZ, maxZ);
 }
示例#3
0
 /**
  * Output a message for a player with the standard format (see CheckUtils.debug(Player, CheckType,
  * String).
  *
  * @param player Can be null.
  * @param message
  */
 public void debug(final Player player, final String message) {
   CheckUtils.debug(player, checkType, message);
 }