Skip to content

Commit

Permalink
match core commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Mar 20, 2022
1 parent 82b777e commit 989be6f
Showing 1 changed file with 6 additions and 5 deletions.
Expand Up @@ -80,18 +80,19 @@ public ServerTagBase() {
public void run(ReplaceableTagEvent event) {
serverTag(event);
}
}, "server", "global");
}, "server");
TagManager.registerStaticTagBaseHandler(ElementTag.class, "global", (attribute) -> {
Deprecations.globalTagName.warn(attribute.context);
return null;
});
}

public static final long serverStartTimeMillis = System.currentTimeMillis();

public void serverTag(ReplaceableTagEvent event) {
if (!event.matches("server", "global") || event.replaced()) {
if (!event.matches("server") || event.replaced()) {
return;
}
if (event.matches("global")) {
Deprecations.globalTagName.warn(event.getScriptEntry());
}
Attribute attribute = event.getAttributes().fulfill(1);

if (attribute.startsWith("economy")) {
Expand Down

0 comments on commit 989be6f

Please sign in to comment.