@@ -0,0 +1,1251 @@
+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 CmdUnban extends Command%7B%0A%0A%09public CmdUnban()%7B%0A%09%09this.name = Constants.UNBAN_NAME;%0A%09%09this.description = Constants.UNBAN_DESC;%0A%09%09this.helpMsg = Constants.UNBAN_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 = %22All%22;%0A%09%09try%7B%0A%09%09%09if(args.length == 0)%7B%0A%09%09%09%09server.unbanAll();%0A%09%09%09%7Delse if(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%09server.unbanUser(m.getUser().getId());%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 unbanned%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 unban command