@@ -0,0 +1,1341 @@
+package core.commands;%0A%0Aimport core.Constants;%0Aimport core.entities.Server;%0Aimport core.exceptions.BadArgumentsException;%0Aimport core.exceptions.DoesNotExistException;%0Aimport core.exceptions.InvalidUseException;%0Aimport core.util.Utils;%0Aimport net.dv8tion.jda.core.entities.Member;%0A%0Apublic class CmdRemoveAdmin extends Command%7B%0A%0A%09public CmdRemoveAdmin()%7B%0A%09%09this.name = Constants.REMOVEADMIN_NAME;%0A%09%09this.description = Constants.REMOVEADMIN_DESC;%0A%09%09this.helpMsg = Constants.REMOVEADMIN_HELP;%0A%09%09this.adminRequired = true;%0A%09%09this.pugCommand = false;%0A%09%7D%0A%09%0A%09@Override%0A%09public void execCommand(Server server, Member member, String%5B%5D args) %7B%0A%09%09String pName;%0A%09%09try%7B%0A%09%09%09if(args.length == 1)%7B%0A%09%09%09%09Member m = server.getMember(args%5B0%5D);%0A%09%09%09%09if (m != null)%7B%0A%09%09%09%09%09pName = m.getEffectiveName();%0A%09%09%09%09%09if(server.isAdmin(m))%7B%0A%09%09%09%09%09%09server.removeAdmin(m.getUser().getId());%0A%09%09%09%09%09%7Delse%7B%0A%09%09%09%09%09%09throw new InvalidUseException(pName + %22 is not an admin%22);%0A%09%09%09%09%09%7D%0A%09%09%09%09%7Delse%7B%0A%09%09%09%09%09throw new DoesNotExistException(%22User%22);%0A%09%09%09%09%7D%0A%09%09%09%7Delse%7B%0A%09%09%09%09throw new BadArgumentsException();%0A%09%09%09%7D%0A%09%09%09this.response = Utils.createMessage(String.format(%22%60%25s's admin removed%60%22, pName));%0A%09%09%09System.out.println(success());%0A%09%09%7Dcatch(BadArgumentsException %7C DoesNotExistException %7C InvalidUseException ex)%7B%0A%09%09%09this.response = Utils.createMessage(%22Error!%22, ex.getMessage(), false);%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

Create removeAdmin command