diff --git a/src/main/java/com/bbn/hadder/commands/Perm.java b/src/main/java/com/bbn/hadder/commands/Perm.java new file mode 100644 index 0000000..faee03a --- /dev/null +++ b/src/main/java/com/bbn/hadder/commands/Perm.java @@ -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 + +} diff --git a/src/main/java/com/bbn/hadder/commands/Perms.java b/src/main/java/com/bbn/hadder/commands/Perms.java new file mode 100644 index 0000000..b2df183 --- /dev/null +++ b/src/main/java/com/bbn/hadder/commands/Perms.java @@ -0,0 +1,9 @@ +/* + * @author Hax / Hax6775 / Schlauer_Hax + */ + +package com.bbn.hadder.commands; + +public @interface Perms { + Perm[] perms() default {}; +} diff --git a/src/main/java/com/bbn/hadder/commands/owner/TestCommand.java b/src/main/java/com/bbn/hadder/commands/owner/TestCommand.java index 0e8133b..54344f5 100644 --- a/src/main/java/com/bbn/hadder/commands/owner/TestCommand.java +++ b/src/main/java/com/bbn/hadder/commands/owner/TestCommand.java @@ -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