Inject bukkit permissible at lowest priority instead of low

This commit is contained in:
Luck
2017-07-27 12:58:31 +01:00
Unverified
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) {
/* Called when the player starts logging into the server.
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.) */
At this point, the users data should be present and loaded. */
final Player player = e.getPlayer();
final User user = plugin.getUserManager().getIfLoaded(plugin.getUuidCache().getUUID(player.getUniqueId()));