Class SubSendCommandEvent
java.lang.Object
org.spongepowered.api.event.impl.AbstractEvent
net.ME1312.SubServers.Client.Sponge.Event.SubSendCommandEvent
Send Command Event
-
Field Summary
Fields inherited from class org.spongepowered.api.event.impl.AbstractEvent
currentOrder
-
Constructor Summary
ConstructorDescriptionSubSendCommandEvent
(UUID player, String server, String command, UUID target) Server Command Event -
Method Summary
Modifier and TypeMethodDescriptiongetCause()
Deprecated.Use simplified methods where availableGets the Command to SendGets the player that triggered the EventGets the Server EffectedGets the Player that will be forced to send the CommandMethods inherited from class org.spongepowered.api.event.impl.AbstractEvent
init
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.spongepowered.api.event.Event
getContext, getSource
-
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
-
getTarget
Gets the Player that will be forced to send the Command- Returns:
- Target Player or null if Console
-
getCause
Deprecated.Use simplified methods where availableGets the cause of this Event
-