mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-11 18:22:08 -07:00
Allow Entities to be CommandSenders and add ProxiedCommandSender
By: Thinkofdeath <thinkofdeath@spigotmc.org>
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
|
||||
package org.bukkit.command;
|
||||
|
||||
public interface ProxiedCommandSender extends CommandSender {
|
||||
|
||||
/**
|
||||
* Returns the CommandSender which triggered this proxied command
|
||||
*
|
||||
* @return the caller which triggered the command
|
||||
*/
|
||||
CommandSender getCaller();
|
||||
|
||||
/**
|
||||
* Returns the CommandSender which is being used to call the command
|
||||
*
|
||||
* @return the caller which the command is being run as
|
||||
*/
|
||||
CommandSender getCallee();
|
||||
|
||||
}
|
Reference in New Issue
Block a user