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 PluginManager pluginManager;
|
||||||
private WorldInfoManager worldInfos;
|
private WorldInfoManager worldInfos;
|
||||||
|
|
||||||
|
public IslandSurvivalCraft() {
|
||||||
|
worldInfos = new WorldInfoManager();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
pluginManager = getServer().getPluginManager();
|
pluginManager = getServer().getPluginManager();
|
||||||
worldInfos = new WorldInfoManager();
|
|
||||||
pluginManager.registerEvents(worldInfos, this);
|
pluginManager.registerEvents(worldInfos, this);
|
||||||
super.onEnable();
|
super.onEnable();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user