BetterConsoleMC/src/main/java/me/jonasjones/betterconsolemc/util/CommandPreRegistry.java
J-onasJones d287466669 Removed ExecutionBlockTimeout property
Removed ExecutionBLockTimeout property since it is pointless
2023-09-26 23:46:21 +02:00

22 lines
790 B
Java

package me.jonasjones.betterconsolemc.util;
import lombok.Getter;
@Getter
public class CommandPreRegistry { //TODO: Add timeout before command can be ran again (unixtimestamp)
private Constants.CmdMode commandmode;
private String command;
private int permissionLevel;
private int execTimeout;
private String ingamecommand;
private boolean broadcastToOp;
public void init(Constants.CmdMode commandmode, String command, int permissionLevel, int execTimeout, String ingamecommand, boolean broadcastToOp) {
this.commandmode = commandmode;
this.command = command;
this.permissionLevel = permissionLevel;
this.execTimeout = execTimeout;
this.ingamecommand = ingamecommand;
this.broadcastToOp = broadcastToOp;
}
}