mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-07 03:00:29 +01:00
Added permission to use Generators as Visitor
This commit is contained in:
parent
2e0031b116
commit
8bdb5805c6
@ -583,7 +583,9 @@ public class Block implements Listener {
|
||||
boolean isMember = island.hasRole(IslandRole.Owner, player.getUniqueId()) ||
|
||||
island.hasRole(IslandRole.Member, player.getUniqueId()) ||
|
||||
island.hasRole(IslandRole.Coop, player.getUniqueId()) ||
|
||||
island.hasRole(IslandRole.Operator, player.getUniqueId());
|
||||
island.hasRole(IslandRole.Operator, player.getUniqueId()) ||
|
||||
(island.getVisit().getVisitors().contains(player.getUniqueId()) &&
|
||||
player.hasPermission("fabledskyblock.generator.anywhere"));
|
||||
|
||||
if (isMember && islandManager.isLocationAtIsland(island, player.getLocation(), world)) {
|
||||
possiblePlayers.add(player);
|
||||
|
Loading…
Reference in New Issue
Block a user