Merge 986bdc83f5
into 44f388f3ba
This commit is contained in:
commit
73372eb17d
|
@ -70,6 +70,16 @@ public class Config
|
|||
|
||||
public static void setBorder(String world, BorderData border, boolean logIt)
|
||||
{
|
||||
if(border.getShape()==null || !border.getShape())
|
||||
{
|
||||
if(border.getRadiusX()==border.getRadiusZ())
|
||||
{
|
||||
org.bukkit.WorldBorder wb = WorldBorder.plugin.getServer().getWorld(world).getWorldBorder();
|
||||
wb.setCenter(border.getX(), border.getZ());
|
||||
wb.setSize(border.getRadiusX());
|
||||
wb.setDamageAmount(0);
|
||||
}
|
||||
}
|
||||
borders.put(world, border);
|
||||
if (logIt)
|
||||
log("Border set. " + BorderDescription(world));
|
||||
|
|
Loading…
Reference in New Issue