2024-12-11 22:26:55 +01:00
|
|
|
--- a/net/minecraft/commands/CommandSource.java
|
|
|
|
+++ b/net/minecraft/commands/CommandSource.java
|
2024-12-13 21:21:48 +01:00
|
|
|
@@ -22,6 +_,13 @@
|
2021-11-21 23:00:00 +01:00
|
|
|
public boolean shouldInformAdmins() {
|
2019-04-23 04:00:00 +02:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ // CraftBukkit start
|
|
|
|
+ @Override
|
2024-12-13 21:21:48 +01:00
|
|
|
+ public org.bukkit.command.CommandSender getBukkitSender(CommandSourceStack stack) {
|
2022-08-02 04:50:34 +02:00
|
|
|
+ return io.papermc.paper.brigadier.NullCommandSender.INSTANCE; // Paper - expose a no-op CommandSender
|
2019-04-23 04:00:00 +02:00
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
};
|
|
|
|
|
2024-12-13 21:21:48 +01:00
|
|
|
void sendSystemMessage(Component component);
|
|
|
|
@@ -35,4 +_,6 @@
|
2021-11-21 23:00:00 +01:00
|
|
|
default boolean alwaysAccepts() {
|
2021-06-11 07:00:00 +02:00
|
|
|
return false;
|
|
|
|
}
|
2018-07-15 02:00:00 +02:00
|
|
|
+
|
2024-12-11 22:26:55 +01:00
|
|
|
+ org.bukkit.command.CommandSender getBukkitSender(CommandSourceStack wrapper); // CraftBukkit
|
2018-07-15 02:00:00 +02:00
|
|
|
}
|