Skip to content

Commit

Permalink
add bukkit property handled lists
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jan 20, 2019
1 parent b1f970c commit adcf6d7
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ private BukkitElementProperties(Element element) {
"aschunk", "as_chunk", "ascolor", "as_color", "ascuboid", "as_cuboid", "asentity", "as_entity",
"asinventory", "as_inventory", "asitem", "as_item", "aslocation", "as_location", "asmaterial",
"as_material", "asnpc", "as_npc", "asplayer", "as_player", "asworld", "as_world", "asplugin",
"as_plugin", "last_color", "format", "strip_color", "parse_color", "to_itemscript_hash"};
"as_plugin", "last_color", "format", "strip_color", "parse_color", "to_itemscript_hash"
};

public static final String[] handledMechs = new String[] {
}; // None

Element element;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ private BukkitListProperties(dList list) {
this.list = list;
}

public static final String[] handledTags = new String[]{
"expiration", "formatted"
};

public static final String[] handledMechs = new String[] {
}; // None
dList list;

@Override
Expand Down Expand Up @@ -89,7 +95,7 @@ else if (list.get(n).startsWith("e@") || list.get(n).startsWith("n@")) {
// Returns a Duration of the time remaining on the flag, if it
// has an expiration.
// -->
if (list.flag != null && attribute.startsWith("expiration")) {
if (attribute.startsWith("expiration") && list.flag != null) {
return DenizenAPI.getCurrentInstance().getFlag(list.flag).expiration()
.getAttribute(attribute.fulfill(1));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ public static BukkitQueueProperties getFrom(dObject queue) {
}
}

public static final String[] handledTags = new String[]{
"player", "npc"
};

public static final String[] handledMechs = new String[] {
}; // None

private BukkitQueueProperties(ScriptQueue queue) {
this.queue = queue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ public static BukkitScriptProperties getFrom(dObject script) {
}
}

public static final String[] handledTags = new String[]{
"cooled_down", "cooldown", "step"
};

public static final String[] handledMechs = new String[] {
}; // None

private BukkitScriptProperties(dScript script) {
this.script = script;
Expand Down

0 comments on commit adcf6d7

Please sign in to comment.