Package net.citizensnpcs.npctypes

Examples of net.citizensnpcs.npctypes.CitizensNPCType


    private void loadNPCTypes() {
        File dir = new File(getDataFolder(), "types");
        dir.mkdirs();
        for (String f : dir.list()) {
            if (f.contains(".jar")) {
                CitizensNPCType type = CitizensNPCLoader.loadNPCType(new File(dir, f), this);
                if (type != null) {
                    loadedTypes.add(type.getName());
                    Bukkit.getPluginManager().callEvent(new CitizensEnableTypeEvent(type));
                }
            }
        }
        if (loadedTypes.size() > 0) {
View Full Code Here


        new BasicCommands().addPermissions();
        new ToggleCommands().addPermissions();
        new WaypointCommands().addPermissions();
        addPermission("citizens.evils.immune");
        for (String loaded : Citizens.loadedTypes) {
            CitizensNPCType type = NPCTypeManager.getType(loaded);
            if (type != null) {
                type.getCommands().addPermissions();
            }
        }
        // TODO: investigate whether this is needed.
        for (String permission : permissions) {
            Bukkit.getPluginManager().addPermission(new org.bukkit.permissions.Permission("citizens." + permission));
View Full Code Here

TOP

Related Classes of net.citizensnpcs.npctypes.CitizensNPCType

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.