diff --git a/bukkit/src/main/java/me/lucko/luckperms/bukkit/context/BukkitPlayerCalculator.java b/bukkit/src/main/java/me/lucko/luckperms/bukkit/context/BukkitPlayerCalculator.java index 34bbab78b..ca8eecf9b 100644 --- a/bukkit/src/main/java/me/lucko/luckperms/bukkit/context/BukkitPlayerCalculator.java +++ b/bukkit/src/main/java/me/lucko/luckperms/bukkit/context/BukkitPlayerCalculator.java @@ -48,6 +48,7 @@ import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerChangedWorldEvent; import org.bukkit.event.player.PlayerGameModeChangeEvent; +import org.bukkit.event.player.PlayerJoinEvent; import org.checkerframework.checker.nullness.qual.NonNull; public class BukkitPlayerCalculator implements ContextCalculator, Listener { @@ -113,6 +114,11 @@ public class BukkitPlayerCalculator implements ContextCalculator, Listen this.plugin.getContextManager().signalContextUpdate(e.getPlayer()); } + @EventHandler(priority = EventPriority.LOWEST) + public void onPlayerJoinWorld(PlayerJoinEvent e) { + this.plugin.getContextManager().signalContextUpdate(e.getPlayer()); + } + @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) public void onGameModeChange(PlayerGameModeChangeEvent e) { this.plugin.getContextManager().signalContextUpdate(e.getPlayer());