Move
This commit is contained in:
parent
5a6316f296
commit
3215af2ac3
10 changed files with 24 additions and 17 deletions
|
|
@ -8,8 +8,8 @@ import club.minnced.discord.webhook.WebhookClient;
|
||||||
import club.minnced.discord.webhook.WebhookClientBuilder;
|
import club.minnced.discord.webhook.WebhookClientBuilder;
|
||||||
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.Perm;
|
import com.bbn.hadder.core.Perm;
|
||||||
import com.bbn.hadder.commands.Perms;
|
import com.bbn.hadder.core.Perms;
|
||||||
import com.bbn.hadder.utils.MessageEditor;
|
import com.bbn.hadder.utils.MessageEditor;
|
||||||
import net.dv8tion.jda.api.Permission;
|
import net.dv8tion.jda.api.Permission;
|
||||||
import net.dv8tion.jda.api.entities.Icon;
|
import net.dv8tion.jda.api.entities.Icon;
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,8 @@ package com.bbn.hadder.commands.owner;
|
||||||
import com.bbn.hadder.Hadder;
|
import com.bbn.hadder.Hadder;
|
||||||
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.Perm;
|
import com.bbn.hadder.core.Perm;
|
||||||
import com.bbn.hadder.commands.Perms;
|
import com.bbn.hadder.core.Perms;
|
||||||
import com.bbn.hadder.utils.MessageEditor;
|
import com.bbn.hadder.utils.MessageEditor;
|
||||||
|
|
||||||
import javax.script.ScriptEngine;
|
import javax.script.ScriptEngine;
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ 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.Perm;
|
import com.bbn.hadder.core.Perm;
|
||||||
import com.bbn.hadder.commands.Perms;
|
import com.bbn.hadder.core.Perms;
|
||||||
import com.bbn.hadder.utils.MessageEditor;
|
import com.bbn.hadder.utils.MessageEditor;
|
||||||
import net.dv8tion.jda.api.entities.Guild;
|
import net.dv8tion.jda.api.entities.Guild;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ 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.Perm;
|
import com.bbn.hadder.core.Perm;
|
||||||
import com.bbn.hadder.commands.Perms;
|
import com.bbn.hadder.core.Perms;
|
||||||
|
|
||||||
@Perms(Perm.BOT_OWNER)
|
@Perms(Perm.BOT_OWNER)
|
||||||
public class RebootCommand implements Command {
|
public class RebootCommand implements Command {
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ 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.Perm;
|
import com.bbn.hadder.core.Perm;
|
||||||
import com.bbn.hadder.commands.Perms;
|
import com.bbn.hadder.core.Perms;
|
||||||
import com.bbn.hadder.utils.MessageEditor;
|
import com.bbn.hadder.utils.MessageEditor;
|
||||||
|
|
||||||
@Perms(Perm.BOT_OWNER)
|
@Perms(Perm.BOT_OWNER)
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@ 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.Perm;
|
import com.bbn.hadder.core.Perm;
|
||||||
import com.bbn.hadder.commands.Perms;
|
import com.bbn.hadder.core.Perms;
|
||||||
import com.bbn.hadder.utils.MessageEditor.MessageType;
|
import com.bbn.hadder.utils.MessageEditor.MessageType;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,6 @@ package com.bbn.hadder.core;
|
||||||
import com.bbn.hadder.Rethink;
|
import com.bbn.hadder.Rethink;
|
||||||
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.Perm;
|
|
||||||
import com.bbn.hadder.commands.Perms;
|
|
||||||
import com.bbn.hadder.commands.general.HelpCommand;
|
import com.bbn.hadder.commands.general.HelpCommand;
|
||||||
import com.bbn.hadder.utils.MessageEditor;
|
import com.bbn.hadder.utils.MessageEditor;
|
||||||
import net.dv8tion.jda.api.events.message.MessageReceivedEvent;
|
import net.dv8tion.jda.api.events.message.MessageReceivedEvent;
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,15 @@
|
||||||
* @author Hax / Hax6775 / Schlauer_Hax
|
* @author Hax / Hax6775 / Schlauer_Hax
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.bbn.hadder.commands;
|
package com.bbn.hadder.core;
|
||||||
|
|
||||||
|
import com.bbn.hadder.commands.CommandEvent;
|
||||||
import net.dv8tion.jda.api.Permission;
|
import net.dv8tion.jda.api.Permission;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @author Skidder / GregTCLTK
|
||||||
|
*/
|
||||||
|
|
||||||
public enum Perm {
|
public enum Perm {
|
||||||
|
|
||||||
BOT_OWNER() {
|
BOT_OWNER() {
|
||||||
|
|
@ -2,11 +2,15 @@
|
||||||
* @author Hax / Hax6775 / Schlauer_Hax
|
* @author Hax / Hax6775 / Schlauer_Hax
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.bbn.hadder.commands;
|
package com.bbn.hadder.core;
|
||||||
|
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
||||||
import java.lang.annotation.RetentionPolicy;
|
import java.lang.annotation.RetentionPolicy;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @author Skidder / GregTCLTK
|
||||||
|
*/
|
||||||
|
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
public @interface Perms {
|
public @interface Perms {
|
||||||
Perm[] value() default {};
|
Perm[] value() default {};
|
||||||
|
|
@ -47,7 +47,7 @@ public class MessageEditor {
|
||||||
WARNING,
|
WARNING,
|
||||||
INFO,
|
INFO,
|
||||||
NO_PERMISSION,
|
NO_PERMISSION,
|
||||||
NO_SELF_PERMISSION,
|
NO_SELF_PERMISSION,
|
||||||
NO_NSFW
|
NO_NSFW
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue