mirror of
https://github.com/JonasunderscoreJones/BetterConsoleMC.git
synced 2025-10-25 14:39:19 +02:00
22 lines
790 B
Java
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;
|
|
}
|
|
}
|