mirror of
https://github.com/TuxCoding/FastLogin.git
synced 2025-07-29 18:27:36 +02:00
Don't crash if no storage is loaded
If the pluign is running on Bukkit, and it's connected to Bungee then core.getStorage() will be null. If that's the case, players will be logged in via a plugin messages.
This commit is contained in:
@ -73,6 +73,13 @@ public abstract class FloodgateManagement<P extends C, C, L extends LoginSession
|
||||
|
||||
// check if the Bedrock player is linked to a Java account
|
||||
isLinked = floodgatePlayer.getLinkedPlayer() != null;
|
||||
|
||||
//this happens on Bukkit if it's connected to Bungee
|
||||
//if that's the case, players will be logged in via plugin messages
|
||||
if (core.getStorage() == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
profile = core.getStorage().loadProfile(username);
|
||||
AuthPlugin<P> authPlugin = core.getAuthPluginHook();
|
||||
|
||||
|
Reference in New Issue
Block a user