mirror of
https://github.com/hyperdefined/ToolStats.git
synced 2026-01-26 23:46:00 +00:00
forgot to update
This commit is contained in:
@@ -107,13 +107,13 @@ public class ConfigTools {
|
||||
return true;
|
||||
}
|
||||
|
||||
String mode = toolStats.config.getString("worlds.mode");
|
||||
String mode = toolStats.config.getString("world-limit.mode");
|
||||
if (mode == null) {
|
||||
toolStats.logger.info("worlds.mode is not set, not allowing any worlds by default.");
|
||||
toolStats.logger.info("world-limit.mode is not set, not allowing any worlds by default.");
|
||||
return false;
|
||||
}
|
||||
|
||||
List<String> worlds = toolStats.config.getStringList("worlds.worlds");
|
||||
List<String> worlds = toolStats.config.getStringList("world-limit.worlds");
|
||||
// if no worlds are defined, deny them
|
||||
if (worlds.isEmpty()) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user