mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-12 05:44:02 +01:00
Fix bug with IslandsManager maxMembers NPE when logging in.
This commit is contained in:
parent
dfd4df4e05
commit
9bb45ae426
@ -518,7 +518,7 @@ public class IslandsManager {
|
|||||||
perm = "trust.maxsize";
|
perm = "trust.maxsize";
|
||||||
}
|
}
|
||||||
|
|
||||||
int islandMax = island.getMaxMembers() == null ? worldDefault : island.getMaxMembers(rank);
|
int islandMax = island.getMaxMembers(rank) == null ? worldDefault : island.getMaxMembers(rank);
|
||||||
// Update based on owner permissions if online
|
// Update based on owner permissions if online
|
||||||
if (Bukkit.getPlayer(island.getOwner()) != null) {
|
if (Bukkit.getPlayer(island.getOwner()) != null) {
|
||||||
User owner = User.getInstance(island.getOwner());
|
User owner = User.getInstance(island.getOwner());
|
||||||
|
Loading…
Reference in New Issue
Block a user