Skip to content

Commit 490ce1f

Browse files
committed
CommandAnnotation 2.6.3
- Fixed CommandArgument#getArgumentBefore not returning command
1 parent 67e9af0 commit 490ce1f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/skywolf46/commandannotation/data/command/CommandArgument.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ public int pointer() {
5555
}
5656

5757
public String getArgumentBefore() {
58-
return getArgumentBefore(false);
58+
return getArgumentBefore(true);
5959
}
6060

61-
public String getArgumentBefore(boolean addSpaceAfter) {
61+
public String getArgumentBefore(boolean addCommand) {
6262
String x = getOriginalOrNull(0, pointer);
63-
if (x != null && addSpaceAfter)
64-
x += " ";
63+
if (x != null && addCommand)
64+
x = getCommand() + " " + x;
6565
return x;
6666
}
6767

0 commit comments

Comments
 (0)