Adventure
Co-authored-by: zml <zml@stellardrift.ca> Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com> Co-authored-by: Yannick Lamprecht <yannicklamprecht@live.de>
This commit is contained in:
@@ -3,7 +3,7 @@ package org.bukkit.command;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public interface ProxiedCommandSender extends CommandSender {
|
||||
public interface ProxiedCommandSender extends CommandSender, net.kyori.adventure.audience.ForwardingAudience.Single { // Paper
|
||||
|
||||
/**
|
||||
* Returns the CommandSender which triggered this proxied command
|
||||
@@ -21,4 +21,16 @@ public interface ProxiedCommandSender extends CommandSender {
|
||||
@NotNull
|
||||
CommandSender getCallee();
|
||||
|
||||
// Paper start
|
||||
@Override
|
||||
default void sendMessage(final net.kyori.adventure.identity.@NotNull Identity source, final net.kyori.adventure.text.@NotNull Component message, final net.kyori.adventure.audience.@NotNull MessageType type) {
|
||||
net.kyori.adventure.audience.ForwardingAudience.Single.super.sendMessage(source, message, type);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
default net.kyori.adventure.audience.Audience audience() {
|
||||
return this.getCaller();
|
||||
}
|
||||
// Paper end
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user