Class SubAddHostEvent

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

public class SubAddHostEvent extends AbstractEvent implements SubEvent
Add Server Event
  • Constructor Details

    • SubAddHostEvent

      public SubAddHostEvent(UUID player, String host)
      Server Add Event
      Parameters:
      player - Player Adding Server
      host - Host to be added
  • Method Details

    • getHost

      public String getHost()
      Gets the Host to be Added
      Returns:
      The Host to be Added
    • 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