Closed bivashy closed 1 year ago
When we are defining @Optional and @Flag at the same time, value of parameter will be <?null> Example command:
@Command("test") public class TestCommand { @DefaultFor("test") public void onDefault(String first, @Flag("second") @Optional String second) { System.out.println(first); System.out.println(second); } }
When we execute /test 1 It`ll print out:
/test 1
1 <?null>
(Second value is plain String)
Fixed in https://github.com/Revxrsal/Lamp/commit/15212537897c3f68ba394711059dff2e4fddb94b
When we are defining @Optional and @Flag at the same time, value of parameter will be <?null> Example command:
When we execute
/test 1
It`ll print out:(Second value is plain String)