@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/server/CommandDispatcher.java
|
||||
+++ b/net/minecraft/server/CommandDispatcher.java
|
||||
@@ -22,12 +22,21 @@
|
||||
@@ -17,12 +17,21 @@
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
CommandAdvancement.a(this.b);
|
||||
CommandExecute.a(this.b);
|
||||
CommandBossBar.a(this.b);
|
||||
@@ -95,8 +104,13 @@
|
||||
@@ -93,14 +102,59 @@
|
||||
}
|
||||
|
||||
this.b.findAmbiguities((commandnode, commandnode1, commandnode2, collection) -> {
|
||||
@@ -38,8 +38,6 @@
|
||||
this.b.setConsumer((commandcontext, flag1, i) -> {
|
||||
((CommandListenerWrapper) commandcontext.getSource()).a(commandcontext, flag1, i);
|
||||
});
|
||||
@@ -111,7 +125,47 @@
|
||||
|
||||
}
|
||||
|
||||
+ // CraftBukkit start
|
||||
@@ -86,7 +84,7 @@
|
||||
StringReader stringreader = new StringReader(s);
|
||||
|
||||
if (stringreader.canRead() && stringreader.peek() == '/') {
|
||||
@@ -123,7 +177,6 @@
|
||||
@@ -112,7 +166,6 @@
|
||||
byte b0;
|
||||
|
||||
try {
|
||||
@@ -94,7 +92,7 @@
|
||||
ChatComponentText chatcomponenttext;
|
||||
|
||||
try {
|
||||
@@ -132,52 +185,56 @@
|
||||
@@ -121,52 +174,56 @@
|
||||
return i;
|
||||
} catch (CommandException commandexception) {
|
||||
commandlistenerwrapper.sendFailureMessage(commandexception.a());
|
||||
@@ -176,9 +174,9 @@
|
||||
+ return b1;
|
||||
+ }
|
||||
} finally {
|
||||
commandlistenerwrapper.getServer().methodProfiler.exit();
|
||||
commandlistenerwrapper.getServer().getMethodProfiler().exit();
|
||||
}
|
||||
@@ -186,11 +243,36 @@
|
||||
@@ -175,11 +232,36 @@
|
||||
}
|
||||
|
||||
public void a(EntityPlayer entityplayer) {
|
||||
@@ -216,7 +214,7 @@
|
||||
entityplayer.playerConnection.sendPacket(new PacketPlayOutCommands(rootcommandnode));
|
||||
}
|
||||
|
||||
@@ -201,7 +283,7 @@
|
||||
@@ -190,7 +272,7 @@
|
||||
CommandNode<CommandListenerWrapper> commandnode2 = (CommandNode) iterator.next();
|
||||
|
||||
if (commandnode2.canUse(commandlistenerwrapper)) {
|
||||
@@ -225,7 +223,7 @@
|
||||
|
||||
argumentbuilder.requires((icompletionprovider) -> {
|
||||
return true;
|
||||
@@ -224,7 +306,7 @@
|
||||
@@ -213,7 +295,7 @@
|
||||
argumentbuilder.redirect((CommandNode) map.get(argumentbuilder.getRedirect()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user