From 421fb230e9119fe66c646370c6d20353577abb17 Mon Sep 17 00:00:00 2001 From: tueem Date: Sun, 13 Oct 2024 21:14:30 +0200 Subject: [PATCH] removed Command abstraction --- .../marinara/command/DiscordCommand.java | 28 ------------------- .../command/GlobalDiscordCommand.java | 17 ----------- .../command/ServerDiscordCommand.java | 13 --------- 3 files changed, 58 deletions(-) delete mode 100644 lib/src/main/java/net/tomatentum/marinara/command/DiscordCommand.java delete mode 100644 lib/src/main/java/net/tomatentum/marinara/command/GlobalDiscordCommand.java delete mode 100644 lib/src/main/java/net/tomatentum/marinara/command/ServerDiscordCommand.java diff --git a/lib/src/main/java/net/tomatentum/marinara/command/DiscordCommand.java b/lib/src/main/java/net/tomatentum/marinara/command/DiscordCommand.java deleted file mode 100644 index 1dab818..0000000 --- a/lib/src/main/java/net/tomatentum/marinara/command/DiscordCommand.java +++ /dev/null @@ -1,28 +0,0 @@ -package net.tomatentum.marinara.command; - -import net.tomatentum.marinara.handler.InteractionHandler; - -public abstract class DiscordCommand implements InteractionHandler { - private String name; - private String description; - private String[] aliases; - - protected DiscordCommand(String name, String description, String... aliases) { - this.name = name; - this.description = description; - this.aliases = aliases; - } - - public String getName() { - return name; - } - - public String getDescription() { - return description; - } - - public String[] getAliases() { - return aliases; - } - -} diff --git a/lib/src/main/java/net/tomatentum/marinara/command/GlobalDiscordCommand.java b/lib/src/main/java/net/tomatentum/marinara/command/GlobalDiscordCommand.java deleted file mode 100644 index d86cbb4..0000000 --- a/lib/src/main/java/net/tomatentum/marinara/command/GlobalDiscordCommand.java +++ /dev/null @@ -1,17 +0,0 @@ -package net.tomatentum.marinara.command; - -public class GlobalDiscordCommand extends DiscordCommand{ - private boolean enabledInDms = false; - - public GlobalDiscordCommand(String name, String description, String... aliases) { - super(name, description, aliases); - } - - public boolean isEnabledInDms() { - return enabledInDms; - } - - public void setEnabledInDms(boolean enabledInDms) { - this.enabledInDms = enabledInDms; - } -} diff --git a/lib/src/main/java/net/tomatentum/marinara/command/ServerDiscordCommand.java b/lib/src/main/java/net/tomatentum/marinara/command/ServerDiscordCommand.java deleted file mode 100644 index be78c68..0000000 --- a/lib/src/main/java/net/tomatentum/marinara/command/ServerDiscordCommand.java +++ /dev/null @@ -1,13 +0,0 @@ -package net.tomatentum.marinara.command; - -public class ServerDiscordCommand extends DiscordCommand { - private long[] servers; - - public ServerDiscordCommand(String name, String description, String... aliases) { - super(name, description, aliases); - } - - public long[] getServers() { - return servers; - } -} \ No newline at end of file