Advertisement
Guest User

Untitled

a guest
Jul 29th, 2014
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1. #All the prestuff like command sender setting n stuff and then the code:
  2. if(getConfig().getBoolean("commands.basic.enabled")){
  3. # Do stuff
  4. } else {
  5. # Do stuff if its disabled
  6. }
  7.  
  8. #To disable stuff:
  9. if(args.length == 2){
  10. if(args[1] != "false" || args[1] != "true") {
  11. #Do stuff if the state isn't true or false
  12. # if not anything: return false else it'll continue
  13. }
  14. getConfig().set("commands." + args[0] + "enabled", args[1]);
  15. return false;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement