mirror of
https://github.com/BentoBoxWorld/Level.git
synced 2025-02-16 20:41:23 +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>
|
<dependency>
|
||||||
<groupId>world.bentobox</groupId>
|
<groupId>world.bentobox</groupId>
|
||||||
<artifactId>bentobox</artifactId>
|
<artifactId>bentobox</artifactId>
|
||||||
<version>0.15.0-SNAPSHOT</version>
|
<version>0.16.0-SNAPSHOT</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
@ -6,9 +6,9 @@ import java.util.UUID;
|
|||||||
|
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
|
|
||||||
import world.bentobox.level.calculators.PlayerLevel;
|
|
||||||
import world.bentobox.bentobox.BentoBox;
|
import world.bentobox.bentobox.BentoBox;
|
||||||
import world.bentobox.bentobox.api.user.User;
|
import world.bentobox.bentobox.api.user.User;
|
||||||
|
import world.bentobox.level.calculators.PlayerLevel;
|
||||||
|
|
||||||
class LevelPresenter {
|
class LevelPresenter {
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ class LevelPresenter {
|
|||||||
if (!plugin.getIslands().hasIsland(world, targetPlayer)) {
|
if (!plugin.getIslands().hasIsland(world, targetPlayer)) {
|
||||||
// Player may be in a team
|
// Player may be in a team
|
||||||
if (plugin.getIslands().inTeam(world, targetPlayer)) {
|
if (plugin.getIslands().inTeam(world, targetPlayer)) {
|
||||||
targetPlayer = plugin.getIslands().getTeamLeader(world, targetPlayer);
|
targetPlayer = plugin.getIslands().getOwner(world, targetPlayer);
|
||||||
inTeam = true;
|
inTeam = true;
|
||||||
} else {
|
} else {
|
||||||
sender.sendMessage("general.errors.player-has-no-island");
|
sender.sendMessage("general.errors.player-has-no-island");
|
||||||
|
Loading…
Reference in New Issue
Block a user