mirror of
https://gitlab.com/SamB440/rpgregions-2.git
synced 2026-01-06 15:41:35 +00:00
Add IconCommand and teleport command cooldown, bump 1.2.8
This commit is contained in:
@@ -4,10 +4,12 @@ public class IconCommand {
|
||||
|
||||
private final String command;
|
||||
private final CommandClickType clickType;
|
||||
private final int cooldown;
|
||||
|
||||
public IconCommand(String command, CommandClickType clickType) {
|
||||
public IconCommand(String command, CommandClickType clickType, int cooldown) {
|
||||
this.command = command;
|
||||
this.clickType = clickType;
|
||||
this.cooldown = cooldown;
|
||||
}
|
||||
|
||||
public String getCommand() {
|
||||
@@ -17,7 +19,11 @@ public class IconCommand {
|
||||
public CommandClickType getClickType() {
|
||||
return clickType;
|
||||
}
|
||||
|
||||
|
||||
public int getCooldown() {
|
||||
return cooldown;
|
||||
}
|
||||
|
||||
public enum CommandClickType {
|
||||
DISCOVERED,
|
||||
UNDISCOVERED
|
||||
|
||||
Reference in New Issue
Block a user