feat: add warning using offline mode
This commit is contained in:
parent
fcc4590396
commit
ddb4b6d39c
1 changed files with 6 additions and 0 deletions
|
@ -58,6 +58,12 @@ public class NickoBukkit extends JavaPlugin {
|
|||
dataStore = new PlayerDataStore(mojangAPI, getNickoConfig());
|
||||
nameStore = new PlayerNameStore();
|
||||
|
||||
if (!Bukkit.getOnlineMode()) {
|
||||
getLogger().warning("Nicko has not been tested using offline mode!");
|
||||
getLogger().warning("Issues regarding Nicko being used in offline mode will be ignored for now.");
|
||||
}
|
||||
|
||||
|
||||
if (!MinecraftVersion.VILLAGE_UPDATE.atOrAbove()) {
|
||||
getLogger().severe("This version (" + MinecraftVersion.getCurrentVersion().getVersion() + ") is not supported by Nicko!");
|
||||
dataStore.getStorage().setError(true);
|
||||
|
|
Loading…
Reference in a new issue