mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-24 11:36:53 +01:00
Updated to use new API
This commit is contained in:
parent
f70195f3a0
commit
94161d1df3
@ -141,7 +141,7 @@ public class TryToComplete {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private ChallengeResult checkSurrounding(User user, Challenges challenge) {
|
private ChallengeResult checkSurrounding(User user, Challenges challenge) {
|
||||||
if (!addon.getIslands().playerIsOnIsland(user)) {
|
if (!addon.getIslands().userIsOnIsland(user)) {
|
||||||
// Player is not on island
|
// Player is not on island
|
||||||
user.sendMessage("challenges.error.not-on-island");
|
user.sendMessage("challenges.error.not-on-island");
|
||||||
return new ChallengeResult();
|
return new ChallengeResult();
|
||||||
|
Loading…
Reference in New Issue
Block a user