Skip to content

Commit

Permalink
new 'data' meta info
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jul 8, 2022
1 parent b107f67 commit 715b476
Showing 1 changed file with 11 additions and 0 deletions.
Expand Up @@ -254,11 +254,17 @@ public boolean checkSwitch(String key, String value) {
return CoreUtilities.equalsIgnoreCase(pathValue, value);
}

// <--[data]
// @name not_switches
// @values regex
// -->

/**
* List of all prefixed keys that should not be interpreted as switches.
*/
public static HashSet<String> notSwitches = new HashSet<>(Collections.singleton("regex"));


public ScriptPath(ScriptContainer container, String event, String rawContainerPath) {
this.event = event;
this.rawContainerPath = rawContainerPath;
Expand Down Expand Up @@ -656,6 +662,11 @@ public final void registerCouldMatcher(String format) {

private static ScriptEventCouldMatcher currentCouldMatcher = null;

// <--[data]
// @name global_switches
// @values cancelled, ignorecancelled, priority, server_flagged, in, chance
// -->

/**
* Switches that are globally available.
*/
Expand Down

0 comments on commit 715b476

Please sign in to comment.