Skip to content

Commit

Permalink
attach sync_server for:nobody should work
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Mar 5, 2022
1 parent f511a16 commit 8e07b2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -373,6 +373,7 @@ public static void registerTags() {
// @description
// Returns the element with all color codes parsed.
// Optionally, specify a character to prefix the color ids. Defaults to '&' if not specified.
// This allows old-style colors like '&b', or Essentials-style hex codes like '&#ff00ff'
// -->
PropertyParser.<BukkitElementProperties, ElementTag>registerStaticTag(ElementTag.class, "parse_color", (attribute, object) -> {
char prefix = '&';
Expand Down
Expand Up @@ -184,7 +184,7 @@ public void execute(final ScriptEntry scriptEntry) {
Debug.echoError("Cannot attach entity '" + entity + "': entity is not spawned.");
continue;
}
if (forPlayers == null) {
if (forPlayers == null || (forPlayers.isEmpty() && sync_server.asBoolean())) {
procPlayer.accept(entity, null);
}
else {
Expand Down

0 comments on commit 8e07b2a

Please sign in to comment.