Package net.fateuhc.plugin.api.events
Class HostModeDisabledEvent
java.lang.Object
org.bukkit.event.Event
net.fateuhc.plugin.api.events.HostModeDisabledEvent
public class HostModeDisabledEvent
extends org.bukkit.event.Event
This event is called when a host disables 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 profile that has been disabled.org.bukkit.entity.PlayerGet the player instance of the old host.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
HostModeDisabledEvent
public HostModeDisabledEvent()
-
-
Method Details
-
getHost
Get the host profile that has been disabled.- Returns:
Hostof the old host.
-
getPlayer
public org.bukkit.entity.Player getPlayer()Get the player instance of the old host.- Returns:
Playerof the old host.
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-