feat: Basic gui

This commit is contained in:
Discreater committed 2021-04-26 14:26:06 +08:00
1 parent 5283b0641f
commit 42bf760bcb
57 files changed
+2705 -600

No files matched your search

@@ -0,0 +1,30 @@
package me.towdium.jecalculation.command;
import me.towdium.jecalculation.command.commands.CommandHelp;
import me.towdium.jecalculation.command.commands.CommandState;
import javax.annotation.ParametersAreNonnullByDefault;
import java.util.HashMap;
/**
* Author: towdium
* Date: 8/10/17.
*/
@ParametersAreNonnullByDefault
public class Commands {
public static final HashMap<String, SubCommand> commands;
public static final CommandHelp commandHelp = new CommandHelp();
public static final CommandState commandState = new CommandState();
static {
commands = new HashMap<>();
add(commandHelp);
add(commandState);
}
static void add(SubCommand c) {
commands.put(c.getName(), c);
}
}