Remove command reg delay for CommandBook compat.

This may break said compat but I doubt anyone is using it anyway.

Fixes #1943.
This commit is contained in:
wizjany 2022-08-28 10:15:49 -04:00
parent 598c441718
commit f1f1e8aa7d
No known key found for this signature in database
GPG Key ID: 1DB5861C03B76B5E

View File

@ -158,11 +158,9 @@ public void onEnable() {
reg.register(ToggleCommands.class);
reg.register(ProtectionCommands.class);
getServer().getScheduler().scheduleSyncDelayedTask(this, () -> {
if (!platform.getGlobalStateManager().hasCommandBookGodMode()) {
reg.register(GeneralCommands.class);
}
}, 0L);
if (!platform.getGlobalStateManager().hasCommandBookGodMode()) {
reg.register(GeneralCommands.class);
}
getServer().getScheduler().scheduleSyncRepeatingTask(this, sessionManager, BukkitSessionManager.RUN_DELAY, BukkitSessionManager.RUN_DELAY);