This commit is contained in:
GregTCLTK 2019-12-21 12:03:30 +01:00
parent 5a6316f296
commit 3215af2ac3
No known key found for this signature in database
GPG key ID: A91BADE5C070FF67
10 changed files with 24 additions and 17 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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 {

View file

@ -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)

View file

@ -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;
/* /*

View file

@ -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;

View file

@ -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() {

View file

@ -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 {};

View file

@ -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
} }