13
0
geforkt von Mirrors/Paper

Allow Entities to be CommandSenders and add ProxiedCommandSender

By: Thinkofdeath <thinkofdeath@spigotmc.org>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2015-01-04 23:26:45 +00:00
Ursprung a7d7bc05ad
Commit 8d487db2b5
2 geänderte Dateien mit 22 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -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();
}

Datei anzeigen

@ -10,12 +10,13 @@ import org.bukkit.util.Vector;
import java.util.List; import java.util.List;
import java.util.UUID; import java.util.UUID;
import org.bukkit.command.CommandSender;
import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause;
/** /**
* Represents a base entity in the world * Represents a base entity in the world
*/ */
public interface Entity extends Metadatable { public interface Entity extends Metadatable, CommandSender {
/** /**
* Gets the entity's current position * Gets the entity's current position