Class SubRemoveServerEvent

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

public class SubRemoveServerEvent extends AbstractEvent implements SubEvent
Remove Server Event
  • Constructor Details

    • SubRemoveServerEvent

      public SubRemoveServerEvent(UUID player, String host, String server)
      Server Remove Event
      Parameters:
      player - Player Adding Host
      server - Server Starting
  • Method Details

    • getServer

      public String getServer()
      Gets the Server to be Removed
      Returns:
      The Server to be Removed
    • getHost

      public String getHost()
      Gets the Host of the Server
      Returns:
      The Host of the Server or null if isn't a SubServer
    • getPlayer

      public UUID getPlayer()
      Gets the player that triggered the Event
      Returns:
      The Player that triggered this Event or null if Console
    • 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