Paper/nms-patches/RemoteControlCommandListener.patch

21 lines
820 B
Diff
Raw Normal View History

2015-05-25 12:37:24 +02:00
--- a/net/minecraft/server/RemoteControlCommandListener.java
+++ b/net/minecraft/server/RemoteControlCommandListener.java
2020-06-25 02:00:00 +02:00
@@ -26,6 +26,17 @@
return new CommandListenerWrapper(this, Vec3D.b((BaseBlockPosition) worldserver.getSpawn()), Vec2F.a, worldserver, 4, "Rcon", RemoteControlCommandListener.b, this.server, (Entity) null);
}
2015-02-26 23:41:06 +01:00
+ // CraftBukkit start - Send a String
+ public void sendMessage(String message) {
2019-04-23 04:00:00 +02:00
+ this.buffer.append(message);
+ }
2018-07-15 02:00:00 +02:00
+
+ @Override
+ public org.bukkit.command.CommandSender getBukkitSender(CommandListenerWrapper wrapper) {
2019-04-23 04:00:00 +02:00
+ return server.remoteConsole;
2018-07-15 02:00:00 +02:00
+ }
+ // CraftBukkit end
2015-02-26 23:41:06 +01:00
+
2019-04-23 04:00:00 +02:00
@Override
2020-06-25 02:00:00 +02:00
public void sendMessage(IChatBaseComponent ichatbasecomponent, UUID uuid) {
2019-04-23 04:00:00 +02:00
this.buffer.append(ichatbasecomponent.getString());