Interface CommandSource
- All Known Subinterfaces:
Damageable, Entity, LivingEntity, Player
public interface CommandSource
-
Method Details
-
location
Location location()Gets the location that this command is being executed at.- Returns:
- a cloned location instance.
-
sender
CommandSender sender()Gets the command sender that executed this command. The sender of a command source stack is the one that initiated/triggered the execution of a command. It differs toexecutor()as the executor can be changed by a command, e.g. /execute.- Returns:
- the command sender instance
-
executor
-
server
-