Skip to content

Commit

Permalink
Use BentoBox 1.5.0 API
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed May 15, 2019
1 parent 7715474 commit 5c8df6e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
<dependency>
<groupId>world.bentobox</groupId>
<artifactId>bentobox</artifactId>
<version>1.4.0</version>
<version>1.5.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<!-- Vault -->
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/world/bentobox/skygrid/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import world.bentobox.bentobox.api.configuration.StoreAt;
import world.bentobox.bentobox.api.configuration.WorldSettings;
import world.bentobox.bentobox.api.flags.Flag;
import world.bentobox.bentobox.database.objects.DataObject;
import world.bentobox.bentobox.database.objects.adapters.Adapter;
import world.bentobox.bentobox.database.objects.adapters.FlagSerializer;
import world.bentobox.bentobox.database.objects.adapters.FlagSerializer2;
Expand All @@ -29,7 +28,7 @@
@StoreAt(filename="config.yml", path="addons/SkyGrid") // Explicitly call out what name this should have.
@ConfigComment("SkyGrid Configuration [version]")
@ConfigComment("")
public class Settings implements DataObject, WorldSettings {
public class Settings implements WorldSettings {

/* Commands */
@ConfigComment("Island Command. What command users will run to access their island.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import org.bukkit.GameMode;
import org.bukkit.entity.Player;

import world.bentobox.bentobox.api.addons.GameModeAddon;
import world.bentobox.bentobox.api.commands.CompositeCommand;
import world.bentobox.bentobox.api.commands.ConfirmableCommand;
import world.bentobox.bentobox.api.events.island.IslandEvent.Reason;
Expand Down Expand Up @@ -92,7 +93,7 @@ private boolean resetIsland(User user) {
try {
NewIsland.builder()
.player(user)
.world(getWorld())
.addon((GameModeAddon) getAddon())
.reason(Reason.RESET)
.noPaste()
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import java.util.ArrayList;
import java.util.List;

import world.bentobox.bentobox.api.addons.GameModeAddon;
import world.bentobox.bentobox.api.commands.CompositeCommand;
import world.bentobox.bentobox.api.commands.island.IslandBanCommand;
import world.bentobox.bentobox.api.commands.island.IslandBanlistCommand;
Expand Down Expand Up @@ -74,7 +75,7 @@ public boolean execute(User user, String label, List<String> args) {
try {
NewIsland.builder()
.player(user)
.world(getWorld())
.addon((GameModeAddon) getAddon())
.reason(Reason.CREATE)
.noPaste()
.build();
Expand Down

0 comments on commit 5c8df6e

Please sign in to comment.