Skip to content

Commit

Permalink
Fix old code that is very silly.
Browse files Browse the repository at this point in the history
  • Loading branch information
DxsSucuk committed Nov 23, 2023
1 parent de91eec commit 856963b
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/main/java/de/presti/ree6/commands/CommandManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import de.presti.ree6.utils.data.ArrayUtil;
import de.presti.ree6.utils.data.Data;
import de.presti.ree6.utils.others.ThreadUtil;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import net.dv8tion.jda.api.EmbedBuilder;
import net.dv8tion.jda.api.JDA;
Expand Down Expand Up @@ -49,7 +51,8 @@ public class CommandManager {
/**
* An Arraylist with all registered Commands.
*/
static final ArrayList<ICommand> commands = new ArrayList<>();
@Getter(AccessLevel.PUBLIC)
private final ArrayList<ICommand> commands = new ArrayList<>();

/**
* Constructor for the Command-Manager used to register every Command.
Expand Down Expand Up @@ -293,15 +296,6 @@ public void removeCommand(ICommand command) {
commands.remove(command);
}

/**
* Get every Command in the list.
*
* @return an {@link ArrayList} with all Commands.
*/
public ArrayList<ICommand> getCommands() {
return commands;
}

/**
* Try to perform a Command.
*
Expand Down

0 comments on commit 856963b

Please sign in to comment.