Skip to content

Commit 569152d

Browse files
committed
Change worldmanage load order
1 parent e350d96 commit 569152d

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/com/mohistmc/MohistConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import com.mohistmc.commands.PluginCommand;
1515
import com.mohistmc.commands.ShowsCommand;
1616
import com.mohistmc.plugins.MohistPlugin;
17+
import com.mohistmc.plugins.world.WorldManage;
1718
import com.mohistmc.util.YamlUtils;
1819
import java.io.File;
1920
import java.io.IOException;
@@ -108,6 +109,7 @@ public static void registerCommands() {
108109
for (Map.Entry<String, Command> entry : commands.entrySet()) {
109110
MinecraftServer.getServer().server.getCommandMap().register(entry.getKey(), "Mohist", entry.getValue());
110111
}
112+
if (MohistConfig.yml.getBoolean("worldmanage", true)) WorldManage.onEnable();
111113
}
112114

113115
static void readConfig() {

src/main/java/com/mohistmc/plugins/MohistPlugin.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ public class MohistPlugin {
4545
public static Logger LOGGER = LogManager.getLogger("MohistPlugin");
4646

4747
public static void init(Server server) {
48-
if (MohistConfig.yml.getBoolean("worldmanage", true)) WorldManage.onEnable();
4948
File out = new File("libraries/com/mohistmc/cache", "libPath.txt");
5049
if (out.exists()) {
5150
String data;

0 commit comments

Comments
 (0)