Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class CmdAllOff extends Command{
- public CmdAllOff(){
- super("alloff", "", "Turns off all enabled mods");
- }
- @Override
- public boolean recieveCommand(String cmd) throws Exception {
- for(DefaultModule mod : Infantry.getInstance().getModuleManager().moduleList){
- if(mod.isEnabled()){
- mod.setEnabled(false);
- }
- }
- Resilience.getInstance().getFileManager().saveEnabledMods();
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement