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; } }