Archiviert
13
0
Dieses Repository wurde am 2024-12-25 archiviert. Du kannst Dateien ansehen und es klonen, aber nicht pushen oder Issues/Pull-Requests öffnen.
Paper-Old/nms-patches/RemoteControlCommandListener.patch

21 Zeilen
763 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 @@
return new CommandListenerWrapper(this, new Vec3D(worldserver.getSpawn()), Vec2F.a, worldserver, 4, "Recon", new ChatComponentText("Rcon"), this.b, (Entity) null);
}
2015-02-26 23:41:06 +01:00
+ // CraftBukkit start - Send a String
+ public void sendMessage(String message) {
2016-02-29 22:32:46 +01:00
+ this.a.append(message);
+ }
2018-07-15 02:00:00 +02:00
+
+ @Override
+ public org.bukkit.command.CommandSender getBukkitSender(CommandListenerWrapper wrapper) {
+ return b.remoteConsole;
+ }
+ // CraftBukkit end
2015-02-26 23:41:06 +01:00
+
public void sendMessage(IChatBaseComponent ichatbasecomponent) {
2018-07-15 02:00:00 +02:00
this.a.append(ichatbasecomponent.getString());
2015-02-26 23:41:06 +01:00
}