Class SubStopEvent
java.lang.Object
net.md_5.bungee.api.plugin.Event
net.ME1312.SubServers.Bungee.Event.SubStopEvent
- All Implemented Interfaces:
Cancellable,SubEvent
Server Stop Event
-
Constructor Summary
ConstructorsConstructorDescriptionSubStopEvent(UUID player, SubServer server, boolean force) Server Stop Event -
Method Summary
Modifier and TypeMethodDescriptionGets the player that triggered the EventGets the Server EffectedbooleanGets the Cancelled StatusbooleanisForced()Gets if it was a forced shutdownvoidsetCancelled(boolean value) Sets the Cancelled Status
-
Constructor Details
-
SubStopEvent
Server Stop Event- Parameters:
player- Player Stopping Serverserver- Server Stoppingforce- If it was a Forced Shutdown
-
-
Method Details
-
getServer
Gets the Server Effected- Returns:
- The Server Effected
-
getPlayer
Gets the player that triggered the Event- Returns:
- The Player that triggered this Event or null if Console
-
isForced
public boolean isForced()Gets if it was a forced shutdown- Returns:
- Forced Shutdown Status
-
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
-