Class SubSendCommandEvent

java.lang.Object
net.md_5.bungee.api.plugin.Event
net.ME1312.SubServers.Bungee.Event.SubSendCommandEvent
All Implemented Interfaces:
Cancellable, SubEvent

public class SubSendCommandEvent extends Event implements SubEvent, Cancellable
Server Command Event
  • Constructor Details

    • SubSendCommandEvent

      public SubSendCommandEvent(UUID player, Server 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 Server 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
    • setCommand

      public void setCommand(String value)
      Sets the Command to be Sent
      Parameters:
      value - Value
    • getTarget

      public UUID getTarget()
      Gets the Player that will be forced to send the Command
      Returns:
      Target Player or null if Console
    • isCancelled

      public boolean isCancelled()
      Gets the Cancelled Status
      Specified by:
      isCancelled in interface Cancellable
      Returns:
      Cancelled Status
    • setCancelled

      public void setCancelled(boolean value)
      Sets the Cancelled Status
      Specified by:
      setCancelled in interface Cancellable