Package net.citizensnpcs.guards.flags.FlagList

Examples of net.citizensnpcs.guards.flags.FlagList.FlagType


        boolean isSafe = args.getString(offset).charAt(0) == '~';

        String name = isSafe ? args.getJoinedStrings(offset).replaceFirst("~", "") : args.getJoinedStrings(offset);
        name = name.toLowerCase().trim();

        FlagType type = FlagType.PLAYER;
        if (args.hasFlag('g')) {
            if (!PermissionManager.hasBackend()) {
                player.sendMessage(ChatColor.GRAY + "Group flags require a Permissions backend.");
                return;
            }
View Full Code Here


        }
        if (args.argsLength() == 1) {
            player.sendMessage(ChatColor.GRAY + "No flag specified.");
            return;
        }
        FlagType type = flags.contains('g') ? FlagType.GROUP : flags.contains('m') ? FlagType.MOB : FlagType.PLAYER;

        if (!guard.getFlags().contains(type, args.getJoinedStrings(1))) {
            player.sendMessage(ChatColor.GRAY + "Specified flag not found.");
            return;
        }
View Full Code Here

TOP

Related Classes of net.citizensnpcs.guards.flags.FlagList.FlagType

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.