Skip to content

Commit 26dc5c5

Browse files
committed
IslandsManager#isOwner correction and JavaDoc update
1 parent a35353a commit 26dc5c5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/main/java/world/bentobox/bentobox/managers/IslandsManager.java

+6-5
Original file line numberDiff line numberDiff line change
@@ -1286,15 +1286,16 @@ public void clearSpawn(World world) {
12861286
}
12871287

12881288
/**
1289+
* Check is a player has an island and owns it in world
1290+
*
12891291
* @param uniqueId - unique ID
1290-
* @return true if the player is the owner of their island.
1291-
* @deprecated This will be removed in 2.0 because it is ambiguous when a user
1292-
* has more than one island in the world.
1292+
* @return true if the player is the owner of any island in the world.
1293+
* @deprecated Duplicate of {@link #hasIsland(World, UUID)}. Players can have
1294+
* multiple islands.
12931295
*/
1294-
12951296
@Deprecated(since = "2.0", forRemoval = true)
12961297
public boolean isOwner(@NonNull World world, @NonNull UUID uniqueId) {
1297-
return hasIsland(world, uniqueId) && uniqueId.equals(getIsland(world, uniqueId).getOwner());
1298+
return hasIsland(world, uniqueId);
12981299
}
12991300

13001301
/**

0 commit comments

Comments
 (0)