mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-26 20:26:34 +01:00
Optimized condition
This commit is contained in:
parent
94040e4286
commit
4c494c572e
@ -653,9 +653,9 @@ public class Block implements Listener {
|
|||||||
island.hasRole(IslandRole.Member, player.getUniqueId()) ||
|
island.hasRole(IslandRole.Member, player.getUniqueId()) ||
|
||||||
island.hasRole(IslandRole.Coop, player.getUniqueId()) ||
|
island.hasRole(IslandRole.Coop, player.getUniqueId()) ||
|
||||||
island.hasRole(IslandRole.Operator, player.getUniqueId()) ||
|
island.hasRole(IslandRole.Operator, player.getUniqueId()) ||
|
||||||
(visitors.contains(player.getUniqueId()) &&
|
(!ignoreVisitors &&
|
||||||
player.hasPermission("fabledskyblock.generator.anywhere") &&
|
visitors.contains(player.getUniqueId()) &&
|
||||||
!ignoreVisitors);
|
player.hasPermission("fabledskyblock.generator.anywhere"));
|
||||||
|
|
||||||
if (isMember && islandManager.isLocationAtIsland(island, player.getLocation(), world)) {
|
if (isMember && islandManager.isLocationAtIsland(island, player.getLocation(), world)) {
|
||||||
possiblePlayers.add(player);
|
possiblePlayers.add(player);
|
||||||
|
Loading…
Reference in New Issue
Block a user