Updated to renamed API

This commit is contained in:
tastybento 2018-08-05 20:37:03 -07:00
parent b1e3a3fcf5
commit acfd6350b2
2 changed files with 6 additions and 5 deletions

View File

@ -63,7 +63,8 @@
<dependency>
<groupId>world.bentobox</groupId>
<artifactId>bentobox</artifactId>
<version>LATEST</version>
<version>FC-0.81</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>

View File

@ -10,10 +10,10 @@ import bentobox.addon.acidisland.listeners.LavaCheck;
import bentobox.addon.acidisland.world.AcidIslandWorld;
import bentobox.addon.acidisland.world.AcidTask;
import world.bentobox.bentobox.api.addons.Addon;
import world.bentobox.bentobox.api.configuration.BSBConfig;
import world.bentobox.bentobox.api.configuration.BBConfig;
/**
* Addon to BSkyBlock that enables AcidIsland
* Add-on to BentoBox that enables AcidIsland
* @author tastybento
*
*/
@ -29,7 +29,7 @@ public class AcidIsland extends Addon {
addon = this;
saveDefaultConfig();
// Load settings
settings = new BSBConfig<>(this, AISettings.class).loadConfigObject("");
settings = new BBConfig<>(this, AISettings.class).loadConfigObject();
// Create worlds
aiw = new AcidIslandWorld(this);
}
@ -53,7 +53,7 @@ public class AcidIsland extends Addon {
acidTask.cancelTasks();
// Save settings
if (settings != null) {
new BSBConfig<>(this, AISettings.class).saveConfigObject(settings);
new BBConfig<>(this, AISettings.class).saveConfigObject(settings);
}
}