Package net.aufdemrand.denizen.scripts.requirements

Examples of net.aufdemrand.denizen.scripts.requirements.RequirementsContext


        List<String> requirements = getContents().getStringList(path + "REQUIREMENTS.LIST");
        String mode = getContents().getString(path + "REQUIREMENTS.MODE", "ALL");
        // No requirements? Meets requirements!
        if (requirements == null || requirements.isEmpty()) return true;
        // Return new RequirementsContext built with info extracted from the ScriptContainer
        RequirementsContext context = new RequirementsContext(new RequirementsMode(mode), requirements, this);
        context.attachPlayer(player);
        context.attachNPC(npc);
        return DenizenAPI.getCurrentInstance().getScriptEngine().getRequirementChecker().check(context);
    }
View Full Code Here

TOP

Related Classes of net.aufdemrand.denizen.scripts.requirements.RequirementsContext

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.