mirror of
https://github.com/BentoBoxWorld/Level.git
synced 2024-11-22 10:36:08 +01:00
Updated to latest BentoBox version and API
This commit is contained in:
parent
5eea419746
commit
67fa9e31e4
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user