nothing just nothing
This commit is contained in:
parent
2f2edece14
commit
24973518ea
1 changed files with 8 additions and 8 deletions
|
@ -17,12 +17,8 @@ import java.util.List;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
public class CommandHandlerPlugin {
|
public class CommandHandlerPlugin {
|
||||||
private final Bot bot;
|
|
||||||
|
|
||||||
public static final List<Command> commands = new ArrayList<>();
|
public static final List<Command> commands = new ArrayList<>();
|
||||||
|
|
||||||
public boolean disabled = false;
|
|
||||||
|
|
||||||
static {
|
static {
|
||||||
registerCommand(new CommandBlockCommand());
|
registerCommand(new CommandBlockCommand());
|
||||||
registerCommand(new CowsayCommand());
|
registerCommand(new CowsayCommand());
|
||||||
|
@ -58,11 +54,11 @@ public class CommandHandlerPlugin {
|
||||||
registerCommand(new ConsoleServerCommand());
|
registerCommand(new ConsoleServerCommand());
|
||||||
}
|
}
|
||||||
|
|
||||||
private int commandPerSecond = 0;
|
public boolean disabled = false;
|
||||||
|
|
||||||
public static void registerCommand (Command command) {
|
private final Bot bot;
|
||||||
commands.add(command);
|
|
||||||
}
|
private int commandPerSecond = 0;
|
||||||
|
|
||||||
public CommandHandlerPlugin (Bot bot) {
|
public CommandHandlerPlugin (Bot bot) {
|
||||||
this.bot = bot;
|
this.bot = bot;
|
||||||
|
@ -70,6 +66,10 @@ public class CommandHandlerPlugin {
|
||||||
bot.executor.scheduleAtFixedRate(() -> commandPerSecond = 0, 0, 1, TimeUnit.SECONDS);
|
bot.executor.scheduleAtFixedRate(() -> commandPerSecond = 0, 0, 1, TimeUnit.SECONDS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void registerCommand (Command command) {
|
||||||
|
commands.add(command);
|
||||||
|
}
|
||||||
|
|
||||||
// literally the same quality as the js chomens bot
|
// literally the same quality as the js chomens bot
|
||||||
// well probably less mess (mabe.,,.)
|
// well probably less mess (mabe.,,.)
|
||||||
public Component executeCommand (
|
public Component executeCommand (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue