13
0
geforkt von Mirrors/Paper
Paper/nms-patches/RemoteControlCommandListener.patch

21 Zeilen
791 B
Diff

2015-05-25 12:37:24 +02:00
--- a/net/minecraft/server/RemoteControlCommandListener.java
+++ b/net/minecraft/server/RemoteControlCommandListener.java
2018-07-15 02:00:00 +02:00
@@ -23,6 +23,17 @@
2019-04-23 04:00:00 +02:00
return new CommandListenerWrapper(this, new Vec3D(worldserver.getSpawn()), Vec2F.a, worldserver, 4, "Recon", new ChatComponentText("Rcon"), 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
public void sendMessage(IChatBaseComponent ichatbasecomponent) {
2019-04-23 04:00:00 +02:00
this.buffer.append(ichatbasecomponent.getString());