LobbyAPI

Bukkit Plugins
40,353,053 Downloads Last Updated: Oct 11, 2019 Game Version: 1.14

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


Comments

Posts Quoted: