World info now persist through reloads.
This commit is contained in:
parent
1167efbe4e
commit
479e28c090
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user