removed Command abstraction
This commit is contained in:
parent
3db51e9c0b
commit
421fb230e9
@ -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;
|
||||
}
|
||||
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user