Package fr.neatmonster.nocheatplus.players

Examples of fr.neatmonster.nocheatplus.players.PlayerData


            return sendAdminNotifyMessageStored(message);
        }
    }

    private final boolean hasTurnedOffNotifications(final String playerName){
        final PlayerData data = DataManager.getPlayerData(playerName, false);
        return data != null && data.getNotifyOff();
    }
View Full Code Here


    protected void onJoinLow(final Player player){
        final String playerName = player.getName();
        if (nameSetPerms.hasPermission(playerName, Permissions.NOTIFY)){
            // Login notifications...
            final PlayerData data = DataManager.getPlayerData(playerName, true);
            //      // Update available.
            //      if (updateAvailable) player.sendMessage(ChatColor.RED + "NCP: " + ChatColor.WHITE + "A new update of NoCheatPlus is available.\n" + "Download it at http://nocheatplus.org/update");

            // Inconsistent config version.
            if (configProblems != null && ConfigManager.getConfigFile().getBoolean(ConfPaths.CONFIGVERSION_NOTIFY)) {
                // Could use custom prefix from logging, however ncp should be mentioned then.
                sendMessageOnTick(playerName, ChatColor.RED + "NCP: " + ChatColor.WHITE + configProblems);
            }
            // Message if notify is turned off.
            if (data.getNotifyOff()) {
                sendMessageOnTick(playerName, MSG_NOTIFY_OFF);
            }
        }
        // JoinLeaveListenerS: Do update comment in NoCheatPlusAPI with changing event priority.
        for (final JoinLeaveListener jlListener : joinLeaveListeners){
View Full Code Here

TOP

Related Classes of fr.neatmonster.nocheatplus.players.PlayerData

Copyright © 2018 www.massapicom. 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.