mirror of
https://github.com/BentoBoxWorld/AcidIsland.git
synced 2024-11-26 20:55:50 +01:00
Updated API to use 1.5.0 BentoBox API
This commit is contained in:
parent
29a26bd231
commit
42c3ac8c6b
29
pom.xml
29
pom.xml
@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>world.bentobox</groupId>
|
||||
<artifactId>acidisland</artifactId>
|
||||
<version>1.4.0</version>
|
||||
<version>1.5.0-SNAPSHOT</version>
|
||||
|
||||
<name>AcidIsland</name>
|
||||
<description>AcidIsland is an add-on for BentoBox, an expandable Minecraft Bukkit plugin for island-type games like SkyBlock or AcidIsland.</description>
|
||||
@ -228,31 +228,4 @@
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>sonar</id>
|
||||
<properties>
|
||||
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
|
||||
<sonar.organization>tastybento-github</sonar.organization>
|
||||
</properties>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.sonarsource.scanner.maven</groupId>
|
||||
<artifactId>sonar-maven-plugin</artifactId>
|
||||
<version>3.4.1.1168</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>verify</phase>
|
||||
<goals>
|
||||
<goal>sonar</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
@ -4,7 +4,6 @@ import org.bukkit.World;
|
||||
import org.bukkit.WorldCreator;
|
||||
import org.bukkit.WorldType;
|
||||
import org.bukkit.generator.ChunkGenerator;
|
||||
import org.bukkit.plugin.PluginManager;
|
||||
import org.eclipse.jdt.annotation.NonNull;
|
||||
|
||||
import world.bentobox.acidisland.commands.AcidCommand;
|
||||
@ -33,6 +32,16 @@ public class AcidIsland extends GameModeAddon {
|
||||
|
||||
@Override
|
||||
public void onLoad() {
|
||||
// Save the default config from config.yml
|
||||
saveDefaultConfig();
|
||||
// Load settings from config.yml. This will check if there are any issues with it too.
|
||||
loadSettings();
|
||||
// Chunk generator
|
||||
chunkGenerator = settings.isUseOwnGenerator() ? null : new ChunkGeneratorWorld(this);
|
||||
// Register commands
|
||||
adminCommand = new AcidCommand(this, settings.getAdminCommand());
|
||||
playerCommand = new AiCommand(this, settings.getIslandCommand());
|
||||
|
||||
saveDefaultConfig();
|
||||
// Load settings
|
||||
loadSettings();
|
||||
@ -60,13 +69,9 @@ public class AcidIsland extends GameModeAddon {
|
||||
return;
|
||||
}
|
||||
// Register listeners
|
||||
PluginManager manager = getServer().getPluginManager();
|
||||
// Acid Effects
|
||||
manager.registerEvents(new AcidEffect(this), this.getPlugin());
|
||||
manager.registerEvents(new LavaCheck(this), this.getPlugin());
|
||||
// Register commands
|
||||
adminCommand = new AcidCommand(this, settings.getAdminCommand());
|
||||
playerCommand = new AiCommand(this, settings.getIslandCommand());
|
||||
registerListener(new AcidEffect(this));
|
||||
registerListener(new LavaCheck(this));
|
||||
// Burn everything
|
||||
acidTask = new AcidTask(this);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user