mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2025-01-26 17:31:38 +01:00
1.13 gen perms
This commit is contained in:
parent
9a990a7d03
commit
6e3dae4a3a
@ -413,8 +413,9 @@ public class Block implements Listener {
|
|||||||
if (!LocationUtil.isLocationAtLocationRadius(all.getLocation(),
|
if (!LocationUtil.isLocationAtLocationRadius(all.getLocation(),
|
||||||
island.getLocation(world, IslandEnvironment.Island), island.getRadius())) continue;
|
island.getLocation(world, IslandEnvironment.Island), island.getRadius())) continue;
|
||||||
|
|
||||||
int i = generatorManager.getGeneratorStorage().size() - 1;
|
List<Generator> generators = new ArrayList<>(generatorManager.getGenerators());
|
||||||
Generator generator = generatorManager.getGeneratorStorage().get(i);
|
Collections.reverse(generators);
|
||||||
|
for (Generator generator : generators) {
|
||||||
|
|
||||||
if (generator.isPermission()) {
|
if (generator.isPermission()) {
|
||||||
if (!all.hasPermission(generator.getPermission())
|
if (!all.hasPermission(generator.getPermission())
|
||||||
@ -430,6 +431,7 @@ public class Block implements Listener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onBlockBurn(BlockBurnEvent event) {
|
public void onBlockBurn(BlockBurnEvent event) {
|
||||||
|
Loading…
Reference in New Issue
Block a user