Sueta
LO

LocationAPI [1.8.0 - 1.13.1]

1.0.0

LocationAPI - Set/teleport to locations with one line code

·Plugin

LocationAPI

You can choose 2 LocationTypes:
GLOBAL_LOCATION
or

PLAYER_LOCATION

Global Location
Example: If you want to set an spawn, you should use "GLOBAL_LOCATION"

Code to save a global location:

LocationAPI.saveLocation(LocationType.GLOBAL_LOCATION, player, "ExampleLocationName");

Code to teleport to a global location:

LocationAPI.teleportLocation(LocationType.GLOBAL_LOCATION, player, "ExampleLocationName", "§7Example §aMessage");



Player Location
Example: If you want to set an home, you should use " PLAYER_LOCATION"

Code to save a player location:

LocationAPI.saveLocation(LocationType.PLAYER_LOCATION, player, "ExamplePlayerLocationName");

Code to teleport to a player location:

LocationAPI.teleportLocation(LocationType.PLAYER_LOCATION, player, "ExamplePlayerLocationName", "§7Example §aMessage");

Please post bugs and any suggestions into "Discussion"!
Enjoy the plugin :D

Similar projects

Plugin →