Package net.aufdemrand.denizen.objects

Examples of net.aufdemrand.denizen.objects.dScript.debug()


        dScript script = (dScript) scriptEntry.getObject("script");
        dPlayer player = (dPlayer) scriptEntry.getObject("player");

        // Report to dB
        dB.report(scriptEntry, getName(),
                player.debug() + script.debug());

        failScript(player.getName(), script.getName());
    }

    public static void resetFails(String playerName, String scriptName) {
View Full Code Here


        dScript script = (dScript) scriptEntry.getObject("script");
        Duration delay = (Duration) scriptEntry.getObject("delay");

        // Debug output
        dB.report(scriptEntry, getName(),
                script.debug()
                        + (delay != null ? delay.debug() : "")
                        + aH.debugObj("Instant", instant.toString())
                        + aH.debugObj("Queue", id)
                        + (context != null ? aH.debugObj("Context", context.toString()) : "")
                        + (((BukkitScriptEntryData)scriptEntry.entryData).getPlayer() != null
View Full Code Here

    public void execute(ScriptEntry scriptEntry) throws CommandExecutionException {

        dScript script = scriptEntry.getdObject("script");

        // Report to dB
        dB.report(scriptEntry, getName(), scriptEntry.reportObject("action") + script.debug());

        // Perform desired action
        if (scriptEntry.getObject("action").equals(Action.SET))
            ((BukkitScriptEntryData)scriptEntry.entryData).getNPC().getCitizen().getTrait(AssignmentTrait.class)
                    .setAssignment(script.getName(), ((BukkitScriptEntryData)scriptEntry.entryData).getPlayer());
View Full Code Here

        dScript script = (dScript) scriptEntry.getObject("script");
        dPlayer player = (dPlayer) scriptEntry.getObject("player");

        // Report to dB
        dB.report(scriptEntry, getName(),
                player.debug() + script.debug());

        finishScript(player.getName(), script.getName());
    }

    public static void resetFinishes(String playerName, String scriptName) {
View Full Code Here

        Element type = scriptEntry.getElement("type");
        Element id = scriptEntry.getElement("id");
        dScript finish_script = (dScript) scriptEntry.getObject("finish_script");

        dB.report(scriptEntry, getName(), action.debug() + (type != null ? type.debug() : "")
                + id.debug() + (finish_script != null ? finish_script.debug() : ""));

        List<aH.Argument> arguments = (ArrayList<aH.Argument>) scriptEntry.getObject("args");

        switch (Action.valueOf(action.asString().toUpperCase())) {
View Full Code Here

        dB.report(scriptEntry, getName(), aH.debugObj("origin", originEntity != null ? originEntity : originLocation) +
                             aH.debugObj("entities", entities.toString()) +
                             aH.debugObj("destination", destination) +
                             aH.debugObj("speed", speed) +
                             aH.debugObj("max ticks", maxTicks) +
                             (script != null ? script.debug() : "") +
                             (no_rotate ? aH.debugObj("no_rotate", "true"): ""));

        // Keep a dList of entities that can be called using <entry[name].pushed_entities>
        // later in the script queue
        final dList entityList = new dList();
View Full Code Here

                             aH.debugObj("entities", entities.toString()) +
                             destination.debug() +
                             height.debug() +
                             (gravity != null ? gravity.debug(): "") +
                             (speed != null ? speed.debug(): "") +
                             (script != null ? script.debug() : "") +
                             (shooter != null ? shooter.debug() : "") +
                             (spread != null ? spread.debug() : "") +
                             (lead != null ? lead.debug(): "") +
                             (no_rotate ? aH.debugObj("no_rotate", "true"): ""));
View Full Code Here

    public void execute(final ScriptEntry scriptEntry) throws CommandExecutionException {

        final dScript script = (dScript) scriptEntry.getObject("script");
        Duration duration = (Duration) scriptEntry.getObject("duration");

        dB.report(scriptEntry, getName(), ((BukkitScriptEntryData)scriptEntry.entryData).getPlayer().debug() + script.debug()
                + (scriptEntry.hasObject("step")
                ? scriptEntry.getElement("step").debug() : aH.debugObj("step", "++ (inc)"))
                + (duration != null ? duration.debug() : ""));

        String step = scriptEntry.hasObject("step") ? scriptEntry.getElement("step").asString() : null;
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.