File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/java/com/datasiqn/commandcore/command/builder Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1
1
package com .datasiqn .commandcore .command .builder ;
2
2
3
3
import com .datasiqn .commandcore .argument .ArgumentReader ;
4
+ import com .datasiqn .commandcore .argument .type .ArgumentType ;
4
5
import com .datasiqn .commandcore .command .CommandContext ;
5
6
import com .datasiqn .resultapi .Result ;
6
7
import org .bukkit .ChatColor ;
@@ -23,7 +24,7 @@ private LiteralBuilder(String literal) {
23
24
24
25
@ Override
25
26
public @ NotNull Result <String , String > parse (@ NotNull ArgumentReader reader ) {
26
- return Result .< String , String > ok ( reader . nextWord () ).andThen (str -> literal .equals (str ) ? Result .ok (str ) : Result .error ("" ));
27
+ return ArgumentType . WORD . parse ( reader ).andThen (str -> literal .equals (str ) ? Result .ok (str ) : Result .error ("" ));
27
28
}
28
29
29
30
@ Override
You can’t perform that action at this time.
0 commit comments