We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67e9af0 commit 490ce1fCopy full SHA for 490ce1f
src/main/java/skywolf46/commandannotation/data/command/CommandArgument.java
@@ -55,13 +55,13 @@ public int pointer() {
55
}
56
57
public String getArgumentBefore() {
58
- return getArgumentBefore(false);
+ return getArgumentBefore(true);
59
60
61
- public String getArgumentBefore(boolean addSpaceAfter) {
+ public String getArgumentBefore(boolean addCommand) {
62
String x = getOriginalOrNull(0, pointer);
63
- if (x != null && addSpaceAfter)
64
- x += " ";
+ if (x != null && addCommand)
+ x = getCommand() + " " + x;
65
return x;
66
67
0 commit comments