Package net.aufdemrand.denizen.objects

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


                        + (inventory != null ? inventory.debug(): "")
                        + aH.debugObj("Quantity", qty.asDouble())
                        + engrave.debug()
                        + unlimit_stack_size.debug()
                        + (items != null ? aH.debugObj("Items", items) : "")
                        + slot.debug());

        switch (type) {

            case MONEY:
                if(Depends.economy != null)
View Full Code Here


        List<dEntity> entities = (List<dEntity>) scriptEntry.getObject("entities");
        if (entities == null)
            return;
        Element amountelement = scriptEntry.getElement("amount");

        dB.report(scriptEntry, getName(), amountelement.debug() + aH.debugObj("entities", entities));
        if (amountelement.asDouble() == -1)
            for (dEntity entity : entities)
                entity.getLivingEntity().setHealth(entity.getLivingEntity().getMaxHealth());
        else {
            double amount = amountelement.asDouble();
View Full Code Here

        Element action = scriptEntry.getElement("action");
        dWorld world = (dWorld) scriptEntry.getObject("world");
        Element group = scriptEntry.getElement("group");

        // Report to dB
        dB.report(scriptEntry, getName(), action.debug() + (world != null ? world.debug(): "") + group.debug());

        World bukkitWorld = null;
        if (world != null)
            bukkitWorld = world.getWorld();
View Full Code Here

                             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"): ""));

        // Keep a dList of entities that can be called using <entry[name].shot_entities>
        // later in the script queue
View Full Code Here

        Element group = scriptEntry.getElement("group");
        dWorld world = (dWorld) scriptEntry.getObject("world");

        // Report to dB
        dB.report(scriptEntry, getName(), action.debug() + permission.debug()
                + (group != null ? group.debug() : "") + (world != null ? world.debug(): ""));

        World bukkitWorld = null;
        if (world != null)
            bukkitWorld = world.getWorld();
View Full Code Here

        // Report to dB
        dB.report(scriptEntry, getName(),
                type.debug()
                + cmd.debug()
                + silent.debug());

        String command = cmd.asString();

        switch (Type.valueOf(type.asString())) {
View Full Code Here

                             (!lines.isEmpty() ? lines.debug() : "") +
                             (act.equals(Action.ADD) && score != null
                                 ? score.debug()
                                 : "") +
                             (act.equals(Action.ADD) && objective != null
                                 ? displaySlot.debug()
                                 : ""));

        Scoreboard board = null;

        // Get the main scoreboard by default
View Full Code Here

        Element message =  scriptEntry.getElement("message");
        Element fileName = scriptEntry.getElement("file");
        Element typeElement = scriptEntry.getElement("type");

         dB.report(scriptEntry, getName(),
                 message.debug() + fileName.debug() + typeElement.debug());

        Type type = Type.valueOf(typeElement.asString().toUpperCase());

        String directory = URLDecoder.decode(System.getProperty("user.dir"));
        File file = new File(directory, fileName.asString());
View Full Code Here

                dB.echoError(scriptEntry.getResidingQueue(), "Empty braces!");
                return;
            }

            // Report to dB
            dB.report(scriptEntry, getName(), value.debug());

            if (!TagManager.tag(((BukkitScriptEntryData)scriptEntry.entryData).getPlayer(), ((BukkitScriptEntryData)scriptEntry.entryData).getNPC(),
                    value.asString(), false, scriptEntry).equalsIgnoreCase("true"))
                return;
View Full Code Here

        Element remove = scriptEntry.getElement("remove");

        dB.report(scriptEntry, getName(), aH.debugObj("queue", scriptEntry.getResidingQueue().id)
                                          + definition.debug()
                                          + value.debug()
                                          + (remove != null ? remove.debug() : ""));

        if (scriptEntry.hasObject("remove")) {
            scriptEntry.getResidingQueue().removeDefinition(definition.asString());
        }
        else {
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.