Class SubAddServerEvent
java.lang.Object
net.md_5.bungee.api.plugin.Event
net.ME1312.SubServers.Bungee.Event.SubAddServerEvent
- All Implemented Interfaces:
Cancellable
,SubEvent
Server Add Event
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetHost()
Gets the Host of the ServerGets the player that triggered the EventGets the Server to be Addedboolean
Gets the Cancelled Statusvoid
setCancelled
(boolean value) Sets the Cancelled Status
-
Constructor Details
-
SubAddServerEvent
Server Add 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 Added- Returns:
- The Server to be Added
-
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:
isCancelled
in interfaceCancellable
- Returns:
- Cancelled Status
-
setCancelled
public void setCancelled(boolean value) Sets the Cancelled Status- Specified by:
setCancelled
in interfaceCancellable
-