mirror of
https://github.com/BentoBoxWorld/BSkyBlock.git
synced 2024-06-23 09:54:48 +02:00
Updated to new API
This commit is contained in:
parent
61d109d0e8
commit
e432d1e75e
2
pom.xml
2
pom.xml
|
@ -6,7 +6,7 @@
|
|||
|
||||
<groupId>world.bentobox</groupId>
|
||||
<artifactId>BSkyBlock</artifactId>
|
||||
<version>0.6.2-SNAPSHOT</version>
|
||||
<version>0.6.3-SNAPSHOT</version>
|
||||
|
||||
<name>BSkyBlock</name>
|
||||
<description>BSkyBlock is an add-on for BentoBox, an expandable Minecraft Bukkit plugin for island-type games like SkyBlock or AcidIsland.</description>
|
||||
|
|
|
@ -4,7 +4,6 @@ import org.bukkit.World;
|
|||
import org.bukkit.WorldCreator;
|
||||
import org.bukkit.WorldType;
|
||||
|
||||
import world.bentobox.bentobox.api.addons.Addon;
|
||||
import world.bentobox.bentobox.api.addons.GameModeAddon;
|
||||
import world.bentobox.bentobox.api.configuration.Config;
|
||||
import world.bentobox.bentobox.api.configuration.WorldSettings;
|
||||
|
@ -22,13 +21,11 @@ public class BSkyBlock extends GameModeAddon {
|
|||
private static final String NETHER = "_nether";
|
||||
private static final String THE_END = "_the_end";
|
||||
|
||||
private static BSkyBlock addon;
|
||||
// Settings
|
||||
private Settings settings;
|
||||
|
||||
@Override
|
||||
public void onLoad() {
|
||||
addon = this;
|
||||
// Save the default config from config.yml
|
||||
saveDefaultConfig();
|
||||
// Load settings from config.yml. This will check if there are any issues with it too.
|
||||
|
@ -57,10 +54,6 @@ public class BSkyBlock extends GameModeAddon {
|
|||
return settings;
|
||||
}
|
||||
|
||||
public static Addon getInstance() {
|
||||
return addon;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void createWorlds() {
|
||||
String worldName = settings.getWorldName();
|
||||
|
|
|
@ -5,7 +5,6 @@ import java.util.HashMap;
|
|||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
import java.util.Set;
|
||||
|
||||
import org.bukkit.Difficulty;
|
||||
|
@ -13,7 +12,6 @@ import org.bukkit.GameMode;
|
|||
import org.bukkit.block.Biome;
|
||||
import org.bukkit.entity.EntityType;
|
||||
|
||||
import world.bentobox.bentobox.api.addons.Addon;
|
||||
import world.bentobox.bentobox.api.configuration.ConfigComment;
|
||||
import world.bentobox.bentobox.api.configuration.ConfigEntry;
|
||||
import world.bentobox.bentobox.api.configuration.StoreAt;
|
||||
|
@ -1117,11 +1115,6 @@ public class Settings implements DataObject, WorldSettings {
|
|||
this.uniqueId = uniqueId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Optional<Addon> getAddon() {
|
||||
return Optional.of(BSkyBlock.getInstance());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPermissionPrefix() {
|
||||
return "bskyblock";
|
||||
|
|
Loading…
Reference in New Issue
Block a user