9
0
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:
Sam
2020-07-17 12:53:01 +01:00
parent e5e0f16310
commit 1c4deafbe3
7 changed files with 63 additions and 12 deletions

View File

@@ -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