geforkt von Mirrors/Paper
Allow Entities to be CommandSenders and add ProxiedCommandSender
By: Thinkofdeath <thinkofdeath@spigotmc.org>
Dieser Commit ist enthalten in:
Ursprung
a7d7bc05ad
Commit
8d487db2b5
20
paper-api/src/main/java/org/bukkit/command/ProxiedCommandSender.java
Normale Datei
20
paper-api/src/main/java/org/bukkit/command/ProxiedCommandSender.java
Normale Datei
@ -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();
|
||||||
|
|
||||||
|
}
|
@ -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
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren