Updated to latest BentoBox version and API

This commit is contained in:
tastybento 2018-12-01 19:34:08 -08:00
parent 5eea419746
commit 67fa9e31e4
2 changed files with 3 additions and 3 deletions

View File

@ -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>

View File

@ -6,9 +6,9 @@ import java.util.UUID;
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 {
@ -38,7 +38,7 @@ class LevelPresenter {
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");