Skip to content

Commit

Permalink
Fix incorrectly excluding obs in match scope (#1402)
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Herrera <[email protected]>
  • Loading branch information
Pablete1234 authored Sep 28, 2024
1 parent 0da8f1c commit dfa7853
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/main/java/tc/oc/pgm/action/ActionParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ private <B extends Filterable<?>> Class<B> parseScope(Element el, Class<B> scope

private <B extends Filterable<?>> boolean includeObs(Element el, Class<B> scope)
throws InvalidXMLException {
return PartyQuery.class.isAssignableFrom(scope)
return !PartyQuery.class.isAssignableFrom(scope)
|| XMLUtils.parseBoolean(el.getAttribute("observers"), legacy);
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/tc/oc/pgm/command/ShowXmlCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ private void unregister() {

@EventHandler
public void onPlayerJoin(PlayerJoinEvent e) {
server.getScheduler().runTaskLater(PGM.get(), () -> usePlayer(e.getPlayer()), 10L);
server.getScheduler().runTaskLater(PGM.get(), () -> usePlayer(e.getPlayer()), 25L);
}

@Override
Expand Down

0 comments on commit dfa7853

Please sign in to comment.