Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #All the prestuff like command sender setting n stuff and then the code:
- if(getConfig().getBoolean("commands.basic.enabled")){
- # Do stuff
- } else {
- # Do stuff if its disabled
- }
- #To disable stuff:
- if(args.length == 2){
- if(args[1] != "false" || args[1] != "true") {
- #Do stuff if the state isn't true or false
- # if not anything: return false else it'll continue
- }
- getConfig().set("commands." + args[0] + "enabled", args[1]);
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement