Class SubSendCommandEvent

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

public class SubSendCommandEvent extends AbstractEvent implements SubEvent
Send Command Event
  • Constructor Details

    • SubSendCommandEvent

      public SubSendCommandEvent(UUID player, String server, String command, UUID target)
      Server Command Event
      Parameters:
      player - Player Commanding
      server - Target Server
      command - Command to Send
      target - Player that will send
  • 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
    • getCommand

      public String getCommand()
      Gets the Command to Send
      Returns:
      Command to Send
    • getTarget

      public UUID getTarget()
      Gets the Player that will be forced to send the Command
      Returns:
      Target Player 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