World info now persist through reloads.

This commit is contained in:
Harrison Deng 2020-05-04 16:57:57 -05:00
parent 1167efbe4e
commit 479e28c090

View File

@ -11,10 +11,13 @@ public class IslandSurvivalCraft extends JavaPlugin implements Listener {
private PluginManager pluginManager;
private WorldInfoManager worldInfos;
public IslandSurvivalCraft() {
worldInfos = new WorldInfoManager();
}
@Override
public void onEnable() {
pluginManager = getServer().getPluginManager();
worldInfos = new WorldInfoManager();
pluginManager.registerEvents(worldInfos, this);
super.onEnable();
}