Skip to content

Commit

Permalink
Updated to latest BentoBox version and API
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Dec 2, 2018
1 parent 5eea419 commit 67fa9e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
<dependency>
<groupId>world.bentobox</groupId>
<artifactId>bentobox</artifactId>
<version>0.15.0-SNAPSHOT</version>
<version>0.16.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/world/bentobox/level/LevelPresenter.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

import org.bukkit.World;

import world.bentobox.level.calculators.PlayerLevel;
import world.bentobox.bentobox.BentoBox;
import world.bentobox.bentobox.api.user.User;
import world.bentobox.level.calculators.PlayerLevel;

class LevelPresenter {

Expand Down Expand Up @@ -38,7 +38,7 @@ public void calculateIslandLevel(World world, final User sender, UUID targetPlay
if (!plugin.getIslands().hasIsland(world, targetPlayer)) {
// Player may be in a team
if (plugin.getIslands().inTeam(world, targetPlayer)) {
targetPlayer = plugin.getIslands().getTeamLeader(world, targetPlayer);
targetPlayer = plugin.getIslands().getOwner(world, targetPlayer);
inTeam = true;
} else {
sender.sendMessage("general.errors.player-has-no-island");
Expand Down

0 comments on commit 67fa9e3

Please sign in to comment.