Merge Greg's branch into the master branch #230

Merged
greg6775 merged 39 commits from greg-dev into master 2019-12-21 18:14:56 +01:00
3 changed files with 36 additions and 0 deletions
Showing only changes of commit dc91b47d20 - Show all commits

View file

@ -0,0 +1,23 @@
/*
* @author Hax / Hax6775 / Schlauer_Hax
*/
package com.bbn.hadder.commands;
public enum Perm {
BOT_OWNER() {
public boolean check() {
return true;
}
},
MANAGE_MESSAGES,
EMBED_MESSAGES,
BAN_MEMBERS,
KICK_MEMBERS,
MANAGE_SERVER,
MANAGE_ROLES,
CHANGE_NICKNAME,
ADMIN_PERMISSIONS
}

View file

@ -0,0 +1,9 @@
/*
* @author Hax / Hax6775 / Schlauer_Hax
*/
package com.bbn.hadder.commands;
public @interface Perms {
Perm[] perms() default {};
}

View file

@ -2,13 +2,17 @@ package com.bbn.hadder.commands.owner;
import com.bbn.hadder.commands.Command;
import com.bbn.hadder.commands.CommandEvent;
import com.bbn.hadder.commands.Perms;
import com.bbn.hadder.utils.MessageEditor;
import com.bbn.hadder.utils.MessageEditor.MessageType;
import static com.bbn.hadder.commands.Perm.BOT_OWNER;
/*
* @author Skidder / GregTCLTK
*/
@Perms(perms = BOT_OWNER)
public class TestCommand implements Command {
@Override