@@ -8,19 +8,19 @@
|
||||
|
||||
public abstract class CommandBlockListenerAbstract implements ICommandListener {
|
||||
|
||||
@@ -15,6 +16,10 @@
|
||||
@@ -16,6 +17,10 @@
|
||||
private IChatBaseComponent lastOutput;
|
||||
private String command = "";
|
||||
private IChatBaseComponent customName = new ChatComponentText("@");
|
||||
private IChatBaseComponent customName;
|
||||
+ // CraftBukkit start
|
||||
+ @Override
|
||||
+ public abstract CommandSender getBukkitSender(CommandListenerWrapper wrapper);
|
||||
+ // CraftBukkit end
|
||||
|
||||
public CommandBlockListenerAbstract() {}
|
||||
|
||||
@@ -102,14 +107,7 @@
|
||||
if (minecraftserver != null && minecraftserver.F() && minecraftserver.getEnableCommandBlock() && !UtilColor.b(this.command)) {
|
||||
public CommandBlockListenerAbstract() {
|
||||
this.customName = CommandBlockListenerAbstract.c;
|
||||
@@ -105,14 +110,7 @@
|
||||
if (minecraftserver != null && minecraftserver.J() && minecraftserver.getEnableCommandBlock() && !UtilColor.b(this.command)) {
|
||||
try {
|
||||
this.lastOutput = null;
|
||||
- CommandListenerWrapper commandlistenerwrapper = this.getWrapper().a((commandcontext, flag, i) -> {
|
||||
@@ -35,15 +35,3 @@
|
||||
} catch (Throwable throwable) {
|
||||
CrashReport crashreport = CrashReport.a(throwable, "Executing command block");
|
||||
CrashReportSystemDetails crashreportsystemdetails = crashreport.a("Command to be executed");
|
||||
@@ -140,6 +138,11 @@
|
||||
}
|
||||
|
||||
public void setName(IChatBaseComponent ichatbasecomponent) {
|
||||
+ // CraftBukkit start
|
||||
+ if (ichatbasecomponent == null) {
|
||||
+ ichatbasecomponent = new ChatComponentText("@");
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
this.customName = ichatbasecomponent;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user