Class SubSendCommandEvent
java.lang.Object
net.md_5.bungee.api.plugin.Event
net.ME1312.SubServers.Bungee.Event.SubSendCommandEvent
- All Implemented Interfaces:
Cancellable
,SubEvent
Server Command Event
-
Constructor Summary
ConstructorDescriptionSubSendCommandEvent
(UUID player, Server server, String command, UUID target) Server Command Event -
Method Summary
Modifier and TypeMethodDescriptionGets the Command to SendGets the player that triggered the EventGets the Server EffectedGets the Player that will be forced to send the Commandboolean
Gets the Cancelled Statusvoid
setCancelled
(boolean value) Sets the Cancelled Statusvoid
setCommand
(String value) Sets the Command to be Sent
-
Constructor Details
-
SubSendCommandEvent
Server Command Event- Parameters:
player
- Player Commandingserver
- Target Servercommand
- Command to Sendtarget
- Player that will send
-
-
Method Details
-
getServer
Gets the Server Effected- Returns:
- The Server Effected
-
getPlayer
Gets the player that triggered the Event- Returns:
- The Player that triggered this Event or null if Console
-
getCommand
Gets the Command to Send- Returns:
- Command to Send
-
setCommand
Sets the Command to be Sent- Parameters:
value
- Value
-
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 interfaceCancellable
- Returns:
- Cancelled Status
-
setCancelled
public void setCancelled(boolean value) Sets the Cancelled Status- Specified by:
setCancelled
in interfaceCancellable
-