Examples of fulfill()


Examples of net.aufdemrand.denizen.tags.Attribute.fulfill()

        // @description
        // Returns whether a definition exists for the given definition name.
        // -->
        if (atttribute.startsWith("exists")) {
            if (def == null)
                event.setReplaced(Element.FALSE.getAttribute(atttribute.fulfill(1)));
            else
                event.setReplaced(Element.TRUE.getAttribute(atttribute.fulfill(1)));
            return;
        }
View Full Code Here

Examples of net.aufdemrand.denizen.tags.Attribute.fulfill()

        // -->
        if (atttribute.startsWith("exists")) {
            if (def == null)
                event.setReplaced(Element.FALSE.getAttribute(atttribute.fulfill(1)));
            else
                event.setReplaced(Element.TRUE.getAttribute(atttribute.fulfill(1)));
            return;
        }

        // No invalid definitions!
        if (def == null) {
View Full Code Here

Examples of net.aufdemrand.denizen.tags.Attribute.fulfill()

            if (attribute.hasContext(1)) flag_name = attribute.getContext(1);
            else {
                event.setReplaced("null");
                return;
            }
            event.setReplaced(new Element(FlagManager.serverHasFlag(flag_name)).getAttribute(attribute.fulfill(1)));
        }

        // <--[tag]
        // @attribute <server.flag[<name>]>
        // @returns Flag dList
View Full Code Here

Examples of net.aufdemrand.denizen.tags.Attribute.fulfill()

            if (attribute.hasContext(1)) flag_name = attribute.getContext(1);
            else {
                event.setReplaced("null");
                return;
            }
            attribute.fulfill(1);
            // NOTE: Meta is in dList.java
            if (attribute.startsWith("is_expired")
                    || attribute.startsWith("isexpired")) {
                event.setReplaced(new Element(!FlagManager.serverHasFlag(flag_name))
                        .getAttribute(attribute.fulfill(1)));
View Full Code Here

Examples of net.aufdemrand.denizen.tags.Attribute.fulfill()

            attribute.fulfill(1);
            // NOTE: Meta is in dList.java
            if (attribute.startsWith("is_expired")
                    || attribute.startsWith("isexpired")) {
                event.setReplaced(new Element(!FlagManager.serverHasFlag(flag_name))
                        .getAttribute(attribute.fulfill(1)));
                return;
            }
            // NOTE: Meta is in dList.java
            if (attribute.startsWith("size") && !FlagManager.serverHasFlag(flag_name)) {
                event.setReplaced(new Element(0).getAttribute(attribute.fulfill(1)));
View Full Code Here

Examples of net.aufdemrand.denizen.tags.Attribute.fulfill()

                        .getAttribute(attribute.fulfill(1)));
                return;
            }
            // NOTE: Meta is in dList.java
            if (attribute.startsWith("size") && !FlagManager.serverHasFlag(flag_name)) {
                event.setReplaced(new Element(0).getAttribute(attribute.fulfill(1)));
                return;
            }
            if (FlagManager.serverHasFlag(flag_name))
                event.setReplaced(new dList(DenizenAPI.getCurrentInstance().flagManager()
                        .getGlobalFlag(flag_name))
View Full Code Here

Examples of net.aufdemrand.denizen.tags.Attribute.fulfill()

        // -->
        if (attribute.startsWith("list_materials")) {
            dList allMats = new dList();
            for (Material mat: Material.values())
                allMats.add(mat.name());
            event.setReplaced(allMats.getAttribute(attribute.fulfill(1)));
        }

        // <--[tag]
        // @attribute <server.list_flags[(regex:)<search>]>
        // @returns dList
View Full Code Here

Examples of net.aufdemrand.denizen.tags.Attribute.fulfill()

                    for (String flag : allFlags)
                        if (flag.toLowerCase().contains(search))
                            searchFlags.add(flag);
                }
            }
            event.setReplaced(searchFlags == null ? allFlags.getAttribute(attribute.fulfill(1))
                    : searchFlags.getAttribute(attribute.fulfill(1)));
        }

        // <--[tag]
        // @attribute <server.current_time_millis>
View Full Code Here

Examples of net.aufdemrand.denizen.tags.Attribute.fulfill()

                        if (flag.toLowerCase().contains(search))
                            searchFlags.add(flag);
                }
            }
            event.setReplaced(searchFlags == null ? allFlags.getAttribute(attribute.fulfill(1))
                    : searchFlags.getAttribute(attribute.fulfill(1)));
        }

        // <--[tag]
        // @attribute <server.current_time_millis>
        // @returns Element(Number)
View Full Code Here

Examples of net.aufdemrand.denizen.tags.Attribute.fulfill()

        // @description
        // Returns the number of milliseconds since Jan 1, 1970.
        // -->
        if (attribute.startsWith("current_time_millis")) {
            event.setReplaced(new Element(System.currentTimeMillis())
                    .getAttribute(attribute.fulfill(1)));
        }

        // <--[tag]
        // @attribute <server.has_event[<event_name>]>
        // @returns Element(Number)
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.