Advertisement
ZP4RKER

Untitled

Sep 29th, 2015
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. if(args.length == wantedAmount) {
  2. // DO CODE
  3. } else if(args.length == anotherWantedAmount) {// Only if command takes different amount of arguments, add as many else ifs as needed
  4. // DO CODE
  5. } else {
  6. // Invalid Arguments
  7. }
  8.  
  9. // DON'T DO THIS!!!!!!!!!!!
  10. if(args.length == 0)
  11. // You don't always have to use ==
  12. // You can also use > or < or >= or <=
  13. // DON'T WASTE YOUR TIME!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement