Information:
This API creates a File where all Locations are saved.
How to use:
After you downloaded the LocationAPI import it into your project.
Add the API as a dependency in your plugin.yml!
To see how that works:
Plugin.yml | SpigotMC - High Performance Minecraft
API:
Set Location with Rounded Coordinates (in 0.5 steps) with a Player
Code (Text):
LocationAPI.setLocationRound(player, "Location_1");
Set Location with Rounded Coordinates (in 0.5 steps) with a Location
Code (Text):
LocationAPI.setLocationRound(location, "Location_1");
Set Location with a Player
Code (Text):
LocationAPI.setLocation(player, "Location_1");
Set Location with a Location
Code (Text):
LocationAPI.setLocation(location, "Location_1");
Teleport Player to Location
Code (Text):
LocationAPI.teleportLocation(player, "Location_1");
Return Location
Code (Text):
LocationAPI.getLocation("Location_1");
Return Location
Code (Text):
LocationAPI.getLocation("Location_1");
Check if Location exists
Code (Text):
LocationAPI.LocationExist("Location_1")
Delete Location
Code (Text):
LocationAPI.deleteLocation("Location_1");
Note:
By downloading and using this API you agree to
- NOT PUBLISHING THIS API on any other platform without permission
- NOT DECOMPLING OR DEOBFUSCATING THIS API
Image-Credits:
Icons made by https://www.flaticon.com/authors/those-icons