mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-29 03:13:52 -07:00
Update to Minecraft 1.11
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
|
||||
public class CommandExecute extends CommandAbstract {
|
||||
|
||||
@@ -55,7 +59,10 @@
|
||||
@@ -58,7 +62,10 @@
|
||||
}
|
||||
|
||||
String s = a(astring, b0);
|
||||
@@ -23,15 +23,15 @@
|
||||
public String getName() {
|
||||
return entity.getName();
|
||||
}
|
||||
@@ -100,25 +107,59 @@
|
||||
return entity.h();
|
||||
@@ -103,25 +110,59 @@
|
||||
return entity.B_();
|
||||
}
|
||||
};
|
||||
+ ICommandListener icommandlistener1 = new ProxyListener(); // CraftBukkit
|
||||
ICommandHandler icommandhandler = minecraftserver.getCommandHandler();
|
||||
|
||||
try {
|
||||
- int j = icommandhandler.a(icommandlistener1, s);
|
||||
- int i = icommandhandler.a(icommandlistener1, s);
|
||||
+ // CraftBukkit start
|
||||
+ org.bukkit.command.CommandSender sender = null;
|
||||
+ ICommandListener listener = icommandlistener;
|
||||
@@ -52,10 +52,10 @@
|
||||
+ throw new CommandException("Unhandled executor " + icommandlistener.getClass().getSimpleName(), new Object[0]);
|
||||
+ }
|
||||
+ }
|
||||
+ int j = CommandBlockListenerAbstract.executeCommand(icommandlistener1, new ProxiedNativeCommandSender(icommandlistener1, sender, entity.getBukkitEntity()), s);
|
||||
+ int i = CommandBlockListenerAbstract.executeCommand(icommandlistener1, new ProxiedNativeCommandSender(icommandlistener1, sender, entity.getBukkitEntity()), s);
|
||||
+ // CraftBukkit end
|
||||
|
||||
if (j < 1) {
|
||||
if (i < 1) {
|
||||
throw new CommandException("commands.execute.allInvocationsFailed", new Object[] { s});
|
||||
}
|
||||
} catch (Throwable throwable) {
|
||||
|
Reference in New Issue
Block a user