mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-18 00:20:44 +00:00
delay group loading by 1 tick to allow permissions to load
This commit is contained in:
@@ -75,7 +75,10 @@ public class NameLayerPlugin extends ACivMod {
|
||||
if (loadGroups) {
|
||||
PermissionType.initialize();
|
||||
blackList = new BlackList();
|
||||
groupCache = NameLayerGroupCache.loadAll(nameLayerReadDao, getLogger());
|
||||
groupCache = new NameLayerGroupCache();
|
||||
Bukkit.getScheduler().runTaskAsynchronously(this, () -> {
|
||||
groupCache = NameLayerGroupCache.loadAll(nameLayerReadDao, getLogger());
|
||||
});
|
||||
startInvalidationConsumer();
|
||||
if (config.getBoolean("groups.interact", true)) {
|
||||
defaultGroupHandler = new DefaultGroupHandler();
|
||||
|
||||
Reference in New Issue
Block a user