mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-07-01 09:04:58 +02:00
Worldborder color
This commit is contained in:
parent
b9abac5b6a
commit
441073b4ff
|
@ -219,6 +219,8 @@ public class Block implements Listener {
|
|||
Config config = skyblock.getFileManager().getConfig(new File(skyblock.getDataFolder(), "config.yml"));
|
||||
FileConfiguration configLoad = config.getFileConfiguration();
|
||||
|
||||
if (island == null) return;
|
||||
|
||||
org.bukkit.block.Block block = event.getToBlock();
|
||||
if (!LocationUtil.isLocationAtLocationRadius(block.getLocation(),
|
||||
island.getLocation(world, IslandEnvironment.Island), island.getRadius() - 1.0D)) {
|
||||
|
|
|
@ -30,8 +30,6 @@ public class Stackable {
|
|||
private Material material;
|
||||
private Integer size = 2;
|
||||
|
||||
private UUID dropEntity;
|
||||
|
||||
|
||||
public Stackable(Location location, Material material) {
|
||||
this.island = SkyBlock.getInstance().getIslandManager().getIslandAtLocation(location);
|
||||
|
@ -75,10 +73,6 @@ public class Stackable {
|
|||
this.material = material;
|
||||
}
|
||||
|
||||
public UUID getDropEntity() {
|
||||
return dropEntity;
|
||||
}
|
||||
|
||||
public Integer getSize() {
|
||||
return size;
|
||||
}
|
||||
|
|
|
@ -66,9 +66,9 @@ public final class WorldBorder {
|
|||
double.class, long.class);
|
||||
|
||||
if (color == Color.Green) {
|
||||
transitionSizeBetween.invoke(worldBorder, size, size, 20000000L);
|
||||
transitionSizeBetween.invoke(worldBorder, size - 0.1D, size, 20000000L);
|
||||
} else if (color == Color.Red) {
|
||||
transitionSizeBetween.invoke(worldBorder, size, size, 20000000L);
|
||||
transitionSizeBetween.invoke(worldBorder, size, size - 1.0D, 20000000L);
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||
|
|
Loading…
Reference in New Issue
Block a user