Events
LobbyAPI Events
LobbyAPI Events
LobbyAPI has recieved Events! Now you can access when a player clicks a world in the menu, or when they ares about to teleport to a new world.
Current Events
- PlayerSelectWorldEvent : When a player clicks on
- PlayerChangeWorldEvent: When a player changes worlds
PlayerSelectWorldEvent
Useage: This gets called when a player clicks a world in the menu
To access the event,
@EventHandler public void onSelect(PlayerSelectWorldEvent event){ }
Methods:
getPlayer() : returns the player
getDestination(): returns where the player will be teleported to
setDestination() allows you to see where the player will be teleported to
setCanceled(): Cancels the event if set to true.
PlayerChangeWorldEvent
Useage: This gets called when a player teleports to a new world through the menu.
To access the event,
@EventHandler public void onChange(PlayerChangeWorldEvent event){ }
Methods:
getPlayer() : returns the player
Does it work with multiverse
In reply to emeraldgreenkitten:
I took a look myself, and it works with Multiverse this plugin!
Remember the world names though. :P
How i active the permissions? in-game or where? can you help me? im making a server and when im testing why i or nobody have perms? i need a app?