Skip to content

Commit

Permalink
CommandAnnotation 2.6.3
Browse files Browse the repository at this point in the history
- Fixed CommandArgument#getArgumentBefore not returning command
  • Loading branch information
milkyway0308 committed Feb 21, 2021
1 parent 67e9af0 commit 490ce1f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ public int pointer() {
}

public String getArgumentBefore() {
return getArgumentBefore(false);
return getArgumentBefore(true);
}

public String getArgumentBefore(boolean addSpaceAfter) {
public String getArgumentBefore(boolean addCommand) {
String x = getOriginalOrNull(0, pointer);
if (x != null && addSpaceAfter)
x += " ";
if (x != null && addCommand)
x = getCommand() + " " + x;
return x;
}

Expand Down

0 comments on commit 490ce1f

Please sign in to comment.