Package net.ME1312.Galaxi.Event.Engine
Class CommandEvent
java.lang.Object
net.ME1312.Galaxi.Event.Event
net.ME1312.Galaxi.Event.Engine.CommandEvent
- All Implemented Interfaces:
Cancellable
Command Event Class
-
Constructor Summary
ConstructorDescriptionCommandEvent
(Galaxi engine, CommandSender sender, String raw, String label, String... args) Console Command Event -
Method Summary
Modifier and TypeMethodDescriptionString[]
Get the Command ArgumentsgetLabel()
Get the Command LabelGet the Raw Command StringGets who sent this Commandvoid
setArguments
(String... value) Set the Command Argumentsvoid
Set the Command LabelMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.ME1312.Galaxi.Event.Cancellable
isCancelled, setCancelled
-
Constructor Details
-
CommandEvent
Console Command Event- Parameters:
engine
- GalaxiEnginesender
- Command Senderraw
- Raw Commandlabel
- Command Labelargs
- Command Arguments
-
-
Method Details
-
getSender
Gets who sent this Command- Returns:
- Command Sender
-
getRawCommand
Get the Raw Command String- Returns:
- Raw Command String
-
getLabel
Get the Command Label- Returns:
- Command Label
-
setLabel
Set the Command Label- Parameters:
value
- Command Label
-
getArguments
Get the Command Arguments- Returns:
- Command Arguments
-
setArguments
Set the Command Arguments- Parameters:
value
- Command Arguments
-