mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 01:25:03 +01:00
b2efd58164
By: md_5 <git@md-5.net>
22 lines
1.1 KiB
Diff
22 lines
1.1 KiB
Diff
--- a/net/minecraft/server/CommandBlockListenerAbstract.java
|
|
+++ b/net/minecraft/server/CommandBlockListenerAbstract.java
|
|
@@ -17,6 +17,10 @@
|
|
private IChatBaseComponent lastOutput;
|
|
private String command = "";
|
|
private IChatBaseComponent customName;
|
|
+ // CraftBukkit start
|
|
+ @Override
|
|
+ public abstract org.bukkit.command.CommandSender getBukkitSender(CommandListenerWrapper wrapper);
|
|
+ // CraftBukkit end
|
|
|
|
public CommandBlockListenerAbstract() {
|
|
this.customName = CommandBlockListenerAbstract.c;
|
|
@@ -113,7 +117,7 @@
|
|
|
|
});
|
|
|
|
- minecraftserver.getCommandDispatcher().a(commandlistenerwrapper, this.command);
|
|
+ minecraftserver.getCommandDispatcher().dispatchServerCommand(commandlistenerwrapper, this.command); // CraftBukkit
|
|
} catch (Throwable throwable) {
|
|
CrashReport crashreport = CrashReport.a(throwable, "Executing command block");
|
|
CrashReportSystemDetails crashreportsystemdetails = crashreport.a("Command to be executed");
|