Inject bukkit permissible at lowest priority instead of low
This commit is contained in:
parent
51898abb71
commit
ce2c943397
@ -133,11 +133,10 @@ public class BukkitListener implements Listener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.LOW)
|
@EventHandler(priority = EventPriority.LOWEST)
|
||||||
public void onPlayerLogin(PlayerLoginEvent e) {
|
public void onPlayerLogin(PlayerLoginEvent e) {
|
||||||
/* Called when the player starts logging into the server.
|
/* Called when the player starts logging into the server.
|
||||||
At this point, the users data should be present and loaded.
|
At this point, the users data should be present and loaded. */
|
||||||
Listening on LOW priority to allow plugins to further modify data here. (auth plugins, etc.) */
|
|
||||||
|
|
||||||
final Player player = e.getPlayer();
|
final Player player = e.getPlayer();
|
||||||
final User user = plugin.getUserManager().getIfLoaded(plugin.getUuidCache().getUUID(player.getUniqueId()));
|
final User user = plugin.getUserManager().getIfLoaded(plugin.getUuidCache().getUUID(player.getUniqueId()));
|
||||||
|
Loading…
Reference in New Issue
Block a user