Skip to content

Commit

Permalink
Added CommandArguments.remaining() method, which tells how much argum…
Browse files Browse the repository at this point in the history
…ents is left.
  • Loading branch information
Wolf480pl committed Jan 28, 2014
1 parent 736fce3 commit 04fb634
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/flowpowered/commands/CommandArguments.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ public boolean hasMore() {
return this.index < this.args.size();
}

public int remaining() {
return this.args.size() - this.index;
}

public CommandFlags flags() {
return this.flags;
}
Expand Down

0 comments on commit 04fb634

Please sign in to comment.