Class SubEditServerEvent

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

public class SubEditServerEvent extends AbstractEvent implements SubEvent
Server Edit Event
  • Constructor Details

    • SubEditServerEvent

      public SubEditServerEvent(UUID player, String server, Pair<String,?> edit)
      Server Edit Event
      Parameters:
      player - Player Adding Server
      server - Server to be Edited
      edit - Edit to make
  • Method Details

    • getServer

      public String getServer()
      Gets the Server to be Edited
      Returns:
      The Server to be Edited
    • getPlayer

      public UUID getPlayer()
      Gets the player that triggered the Event
      Returns:
      The Player that triggered this Event or null if Console
    • getEdit

      public Pair<String,ObjectMapValue<String>> getEdit()
      Gets the edit to be made
      Returns:
      Edit to be made
    • 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