Examples of ViolationHistory


Examples of fr.neatmonster.nocheatplus.checks.ViolationHistory

     */
    private void handleInfoCommand(final CommandSender sender, String playerName) {
      final Player player = DataManager.getPlayer(playerName);
      if (player != null) playerName = player.getName();
     
      final ViolationHistory history = ViolationHistory.getHistory(playerName, false);
      final boolean known = player != null || history != null;
      if (history == null){
        sender.sendMessage(TAG + "No entries for " + playerName + "'s violations... " + (known?"":"(exact spelling?)") +".");
        return;
      }
     
        final DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss");
        final ViolationLevel[] violations = history.getViolationLevels();
        if (violations.length > 0) {
            sender.sendMessage(TAG + "Displaying " + playerName + "'s violations...");
            final String c = (sender instanceof Player) ? ChatColor.GRAY.toString() : "";
            for (final ViolationLevel violationLevel : violations) {
                final long time = violationLevel.time;
View Full Code Here

Examples of fr.neatmonster.nocheatplus.checks.ViolationHistory

    }
   
    final Player player = DataManager.getPlayer(playerName);
    if (player != null) playerName = player.getName();
   
    ViolationHistory hist = ViolationHistory.getHistory(playerName, false);
    boolean histRemoved = false;
    if (hist != null){
      histRemoved = hist.remove(checkType);
      if (checkType == CheckType.ALL){
        histRemoved = true;
        ViolationHistory.removeHistory(playerName);
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.