mirror of
https://github.com/GTNewHorizons/JustEnoughCalculation.git
synced 2026-11-13 16:54:02 +00:00
31 lines
750 B
Java
31 lines
750 B
Java
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);
|
|
}
|
|
}
|