Class SubStopEvent

java.lang.Object
org.spongepowered.api.event.impl.AbstractEvent
net.ME1312.SubServers.Client.Sponge.Event.SubStopEvent
All Implemented Interfaces:
SubEvent, Event

public class SubStopEvent extends AbstractEvent implements SubEvent
Server Stop Event
  • Constructor Details

    • SubStopEvent

      public SubStopEvent(UUID player, String server, boolean force)
      Server Stop Event
      Parameters:
      player - Player Stopping Server
      server - Server Stopping
      force - If it was a Forced Shutdown
  • Method Details

    • getServer

      public String getServer()
      Gets the Server Effected
      Returns:
      The Server Effected
    • getPlayer

      public UUID 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
    • getCause

      @Deprecated public Cause getCause()
      Deprecated.
      Use simplified methods where available
      Gets the cause of this Event
      Specified by:
      getCause in interface Event
      Returns:
      The player UUID who triggered this event