Add warning when using BungeeCord withtout setting online mode in config

This commit is contained in:
GeorgH93 2021-04-09 19:50:15 +02:00
parent 0c05eb359e
commit b688cd3022
No known key found for this signature in database
GPG Key ID: D1630D37F9E4B3C8

View File

@ -126,6 +126,10 @@ public boolean useOnlineUUIDs()
String type = getConfigE().getString("Database.UUID_Type", "auto").toLowerCase(Locale.ENGLISH);
if(type.equals("auto"))
{
if(isBungeeCordModeEnabled())
{
logger.warning("When using BungeeCord please make sure to set the UUID_Type config option explicitly!");
}
return plugin.getServer().getOnlineMode();
}
return type.equals("online");