Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. public class CmdAllOff extends Command{
  2.  
  3. public CmdAllOff(){
  4. super("alloff", "", "Turns off all enabled mods");
  5. }
  6.  
  7. @Override
  8. public boolean recieveCommand(String cmd) throws Exception {
  9. for(DefaultModule mod : Infantry.getInstance().getModuleManager().moduleList){
  10. if(mod.isEnabled()){
  11. mod.setEnabled(false);
  12. }
  13. }
  14. Resilience.getInstance().getFileManager().saveEnabledMods();
  15. return true;
  16. }
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement