mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-02 17:32:03 +01:00
977543c545
== AT == public net.minecraft.commands.arguments.blocks.BlockInput tag public net.minecraft.commands.arguments.DimensionArgument ERROR_INVALID_VALUE public net.minecraft.server.ReloadableServerResources registryLookup public net.minecraft.server.ReloadableServerResources Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com> Co-authored-by: Marc Baloup <marc.baloup@laposte.net>
23 lines
748 B
Diff
23 lines
748 B
Diff
--- a/net/minecraft/commands/CommandSource.java
|
|
+++ b/net/minecraft/commands/CommandSource.java
|
|
@@ -22,6 +22,13 @@
|
|
public boolean shouldInformAdmins() {
|
|
return false;
|
|
}
|
|
+
|
|
+ // CraftBukkit start
|
|
+ @Override
|
|
+ public org.bukkit.command.CommandSender getBukkitSender(CommandSourceStack wrapper) {
|
|
+ return io.papermc.paper.brigadier.NullCommandSender.INSTANCE; // Paper - expose a no-op CommandSender
|
|
+ }
|
|
+ // CraftBukkit end
|
|
};
|
|
|
|
void sendSystemMessage(Component message);
|
|
@@ -35,4 +42,6 @@
|
|
default boolean alwaysAccepts() {
|
|
return false;
|
|
}
|
|
+
|
|
+ org.bukkit.command.CommandSender getBukkitSender(CommandSourceStack wrapper); // CraftBukkit
|
|
}
|