Class SubRemoveServerEvent
java.lang.Object
net.md_5.bungee.api.plugin.Event
net.ME1312.SubServers.Bungee.Event.SubRemoveServerEvent
- All Implemented Interfaces:
Cancellable,SubEvent
Server Remove Event
-
Constructor Summary
ConstructorsConstructorDescriptionSubRemoveServerEvent(UUID player, Host host, Server server) Server Remove Event -
Method Summary
Modifier and TypeMethodDescriptiongetHost()Gets the Host of the ServerGets the player that triggered the EventGets the Server to be RemovedbooleanGets the Cancelled StatusvoidsetCancelled(boolean value) Sets the Cancelled Status
-
Constructor Details
-
SubRemoveServerEvent
Server Remove Event- Parameters:
player- Player Adding Serverhost- Host of SubServer (or null for normal Server)server- Server Starting
-
-
Method Details
-
getServer
Gets the Server to be Removed- Returns:
- The Server to be Removed
-
getHost
Gets the Host of the Server- Returns:
- The Host of the Server or null if isn't a SubServer
-
getPlayer
Gets the player that triggered the Event- Returns:
- The Player that triggered this Event or null if Console
-
isCancelled
public boolean isCancelled()Gets the Cancelled Status- Specified by:
isCancelledin interfaceCancellable- Returns:
- Cancelled Status
-
setCancelled
public void setCancelled(boolean value) Sets the Cancelled Status- Specified by:
setCancelledin interfaceCancellable
-