what
This commit is contained in:
parent
11422d6498
commit
deb59caad2
3 changed files with 36 additions and 0 deletions
23
src/main/java/com/bbn/hadder/commands/Perm.java
Normal file
23
src/main/java/com/bbn/hadder/commands/Perm.java
Normal 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
|
||||
|
||||
}
|
||||
9
src/main/java/com/bbn/hadder/commands/Perms.java
Normal file
9
src/main/java/com/bbn/hadder/commands/Perms.java
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
/*
|
||||
* @author Hax / Hax6775 / Schlauer_Hax
|
||||
*/
|
||||
|
||||
package com.bbn.hadder.commands;
|
||||
|
||||
public @interface Perms {
|
||||
Perm[] perms() default {};
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue