From 485d9d0ff64ced6b7ede029b7a2336e1ec2ccfc5 Mon Sep 17 00:00:00 2001 From: TTtie Date: Sun, 24 Nov 2024 01:43:53 +0000 Subject: [PATCH] fix(MatchManagerImpl): lower the match load listener priority Fixes an issue introduced in 0da8f1cc2e26978b642fc3a95c89b827cefc99e8 where running filtered fill actions on match load using variable filters would result in the variable filter abstaining due to the world not being registered with the match manager. Signed-off-by: TTtie --- core/src/main/java/tc/oc/pgm/match/MatchManagerImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/tc/oc/pgm/match/MatchManagerImpl.java b/core/src/main/java/tc/oc/pgm/match/MatchManagerImpl.java index 7621fed78a..db4486d1e6 100644 --- a/core/src/main/java/tc/oc/pgm/match/MatchManagerImpl.java +++ b/core/src/main/java/tc/oc/pgm/match/MatchManagerImpl.java @@ -16,6 +16,7 @@ import org.bukkit.World; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; +import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; import org.jetbrains.annotations.Nullable; import tc.oc.pgm.api.Config; @@ -64,7 +65,7 @@ public MatchManagerImpl(Logger logger) { this.destroyDelaySecs = delaySecs; } - @EventHandler + @EventHandler(priority = EventPriority.LOWEST) public void onMatchLoad(MatchLoadEvent event) { final Match match = event.getMatch();