aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/mache-vineflower/net/minecraft/commands/CommandSource.java.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/mache-vineflower/net/minecraft/commands/CommandSource.java.patch')
-rw-r--r--patch-remap/mache-vineflower/net/minecraft/commands/CommandSource.java.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/patch-remap/mache-vineflower/net/minecraft/commands/CommandSource.java.patch b/patch-remap/mache-vineflower/net/minecraft/commands/CommandSource.java.patch
new file mode 100644
index 0000000000..ee54b4a935
--- /dev/null
+++ b/patch-remap/mache-vineflower/net/minecraft/commands/CommandSource.java.patch
@@ -0,0 +1,36 @@
+--- a/net/minecraft/commands/CommandSource.java
++++ b/net/minecraft/commands/CommandSource.java
+@@ -3,10 +3,10 @@
+ import net.minecraft.network.chat.Component;
+
+ public interface CommandSource {
++
+ CommandSource NULL = new CommandSource() {
+ @Override
+- public void sendSystemMessage(Component component) {
+- }
++ public void sendSystemMessage(Component component) {}
+
+ @Override
+ public boolean acceptsSuccess() {
+@@ -22,6 +22,13 @@
+ public boolean shouldInformAdmins() {
+ return false;
+ }
++
++ // CraftBukkit start
++ @Override
++ public org.bukkit.command.CommandSender getBukkitSender(CommandSourceStack wrapper) {
++ throw new UnsupportedOperationException("Not supported yet.");
++ }
++ // CraftBukkit end
+ };
+
+ void sendSystemMessage(Component component);
+@@ -35,4 +42,6 @@
+ default boolean alwaysAccepts() {
+ return false;
+ }
++
++ org.bukkit.command.CommandSender getBukkitSender(CommandSourceStack wrapper); // CraftBukkit
+ }