31 Zeilen
1.3 KiB
Diff
31 Zeilen
1.3 KiB
Diff
--- a/net/minecraft/server/CommandBlockListenerAbstract.java
|
|
+++ b/net/minecraft/server/CommandBlockListenerAbstract.java
|
|
@@ -4,6 +4,7 @@
|
|
import java.text.SimpleDateFormat;
|
|
import java.util.Date;
|
|
import javax.annotation.Nullable;
|
|
+import org.bukkit.command.CommandSender;
|
|
|
|
public abstract class CommandBlockListenerAbstract implements ICommandListener {
|
|
|
|
@@ -16,6 +17,10 @@
|
|
private IChatBaseComponent lastOutput;
|
|
private String command = "";
|
|
private IChatBaseComponent customName;
|
|
+ // CraftBukkit start
|
|
+ @Override
|
|
+ public abstract CommandSender getBukkitSender(CommandListenerWrapper wrapper);
|
|
+ // CraftBukkit end
|
|
|
|
public CommandBlockListenerAbstract() {
|
|
this.customName = CommandBlockListenerAbstract.c;
|
|
@@ -112,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");
|