aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/mache-spigotflower/net/minecraft/commands/CommandSource.java.patch
blob: 332ddf77d73fdb10ffac39aea340188b0a30b20d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
--- a/net/minecraft/commands/CommandSource.java
+++ b/net/minecraft/commands/CommandSource.java
@@ -6,26 +6,29 @@
 
     CommandSource NULL = new CommandSource() {
         @Override
-        @Override
         public void sendSystemMessage(Component component) {}
 
         @Override
-        @Override
         public boolean acceptsSuccess() {
             return false;
         }
 
         @Override
-        @Override
         public boolean acceptsFailure() {
             return false;
         }
 
         @Override
-        @Override
         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);
@@ -39,4 +42,6 @@
     default boolean alwaysAccepts() {
         return false;
     }
+
+    org.bukkit.command.CommandSender getBukkitSender(CommandSourceStack wrapper); // CraftBukkit
 }