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