mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-12-28 20:47:37 +00:00
Deferred command loading
Moved command loading into a runnable that will execute on the first server tick. This way, we can ensure that all the plugins are loaded before we load our commands, so TFD4J and Shop can both have their respective commands loaded in.
This commit is contained in:
parent
11f9313653
commit
42482ef8e7
@ -161,7 +161,8 @@ public class TotalFreedomMod extends JavaPlugin
|
||||
}
|
||||
|
||||
cl = new CommandLoader();
|
||||
cl.loadCommands();
|
||||
Bukkit.getScheduler().runTaskLater(plugin, cl::loadCommands, 1);
|
||||
// Deferring command loading allowing TFD4J and Shop to load before registering our commands.
|
||||
|
||||
BackupManager backups = new BackupManager();
|
||||
backups.createAllBackups();
|
||||
|
Loading…
Reference in New Issue
Block a user