Sueta
BA

BattleRoyalBorder

1.2

API for making a border that shrinks and its center moves with it like Battle Royal Games

·Plugin

Battle Royal Border - API

Have you ever played games like PUBG or Fortnite? know how their borders move into a new middle, well this is what this API does. This is just the first release and I have plans to make it smoother. If you have suggestions on what to change in the API or ANYTHING let me know. I strive for customer support meaning if you have a request or suggestions and it suits the project I plan to add it as soon as I can.

How to use the API:
Initialize the API:

BRBAPI api = BRBAPI.getAPI();

Create the BRBorder:

BRBorder border = api.createBorder(world, world.getWorldBorder());
BRBorder border = api.createBorder(world, centerLocation, radius);
BRBorder border = api.createBorder(world, centerX, CenterZ, radius);

Get the BRBorder:

BRBorder border = api.getBorder(world);

Move the BRBorder:

border.moveWorldBorder(newCenterX, newCenterZ, newRadius, timeInSeconds);
border.moveWorldBorder(newCenterX, newCenterZ, newRadius, timeInSeconds, newDamageAmount);

Similar projects

Plugin →