I know how a command works and how to use the arguments but how would I go along as doing something like command flags? Example BanManagement (/ban {user} {time} -s) "-s" means silent I want the -s. I'm guessing it would be to check if an argument starts with "-" then that'll be a flag. Any other suggestions?
Already done. Thanks though. For anyone wondering, I used this: Code (Text): for(String arg : args) { if(arg.startsWith("-s")) { } } fixed* pasted wrong code
Usually, commands flags are allowed to put anywhere in the command, but that's a bit more complex to code.