World Borders
hCore allows you to easily add world borders for player.
Example
HWorldBorder myBorder = HCore.createBorder(player.getLocation(), 20, 0, 0, 0, 0, HBorderColor.BLUE); // creates a blue worldborder at player's location
myBorder.show(player); //shows world border for player
System.out.println(myBorder.getCenter()); // prints the center location of borderHWorldBorder#setCenter(Location)
HWorldBorder#setColor(HBorderColor)
HWorldBorder#setWarningDistance(int)
HWorldBorder#setWarningTime(int)
HWorldBorder#setDamageAmout(double)
HWorldBorder#setDamageBuffer(double)
HWorldBorder#showAll()
Last updated