This commit is contained in:
Hax 2019-12-18 18:05:14 +01:00
parent 11422d6498
commit deb59caad2
3 changed files with 36 additions and 0 deletions

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.Command;
import com.bbn.hadder.commands.CommandEvent; import com.bbn.hadder.commands.CommandEvent;
import com.bbn.hadder.commands.Perms;
import com.bbn.hadder.utils.MessageEditor; import com.bbn.hadder.utils.MessageEditor;
import com.bbn.hadder.utils.MessageEditor.MessageType; import com.bbn.hadder.utils.MessageEditor.MessageType;
import static com.bbn.hadder.commands.Perm.BOT_OWNER;
/* /*
* @author Skidder / GregTCLTK * @author Skidder / GregTCLTK
*/ */
@Perms(perms = BOT_OWNER)
public class TestCommand implements Command { public class TestCommand implements Command {
@Override @Override