mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 03:17:36 +01:00
21 lines
763 B
Diff
21 lines
763 B
Diff
--- a/net/minecraft/server/RemoteControlCommandListener.java
|
|
+++ b/net/minecraft/server/RemoteControlCommandListener.java
|
|
@@ -23,6 +23,17 @@
|
|
return new CommandListenerWrapper(this, new Vec3D(worldserver.getSpawn()), Vec2F.a, worldserver, 4, "Recon", new ChatComponentText("Rcon"), this.b, (Entity) null);
|
|
}
|
|
|
|
+ // CraftBukkit start - Send a String
|
|
+ public void sendMessage(String message) {
|
|
+ this.a.append(message);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public org.bukkit.command.CommandSender getBukkitSender(CommandListenerWrapper wrapper) {
|
|
+ return b.remoteConsole;
|
|
+ }
|
|
+ // CraftBukkit end
|
|
+
|
|
public void sendMessage(IChatBaseComponent ichatbasecomponent) {
|
|
this.a.append(ichatbasecomponent.getString());
|
|
}
|