From 586b357be8860113f9e7d4197e092e50b4d50506 Mon Sep 17 00:00:00 2001 From: Smart123s <28480228+Smart123s@users.noreply.github.com> Date: Thu, 26 Aug 2021 13:40:41 +0200 Subject: [PATCH] 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. --- .../fastlogin/core/shared/FloodgateManagement.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/src/main/java/com/github/games647/fastlogin/core/shared/FloodgateManagement.java b/core/src/main/java/com/github/games647/fastlogin/core/shared/FloodgateManagement.java index 3b36c3ea..9469467b 100644 --- a/core/src/main/java/com/github/games647/fastlogin/core/shared/FloodgateManagement.java +++ b/core/src/main/java/com/github/games647/fastlogin/core/shared/FloodgateManagement.java @@ -73,6 +73,13 @@ public abstract class FloodgateManagement
authPlugin = core.getAuthPluginHook();