Package net.fateuhc.plugin.api.events
Class HostModeEnabledEvent
java.lang.Object
org.bukkit.event.Event
net.fateuhc.plugin.api.events.HostModeEnabledEvent
public class HostModeEnabledEvent
extends org.bukkit.event.Event
This event is called when a player enables host mode.
- Since:
- API v0.4-ALPHA
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.event.HandlerListgetHost()Get the host's profile.org.bukkit.entity.PlayerGet thePlayerinstance of the host.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
HostModeEnabledEvent
public HostModeEnabledEvent()
-
-
Method Details
-
getHost
Get the host's profile.- Returns:
Host's profile
-
getPlayer
public org.bukkit.entity.Player getPlayer()Get thePlayerinstance of the host.- Returns:
Playerinstance
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-