mirror of
https://github.com/CarmJos/ScriptItems
synced 2026-06-04 20:37:33 +08:00
为玩家更新点击限时
This commit is contained in:
@@ -30,11 +30,10 @@ public class PluginConfig {
|
|||||||
|
|
||||||
public static class CoolDown {
|
public static class CoolDown {
|
||||||
|
|
||||||
public static ConfigValue<Boolean> ENABLE = new ConfigValue<>("cooldown.enable", Boolean.class, false);
|
public static ConfigValue<Boolean> ENABLE = new ConfigValue<>("cooldown.enable", Boolean.class, true);
|
||||||
|
|
||||||
public static ConfigValue<Long> TIME = new ConfigValue<>("cooldown.time", Long.class, 3000L);
|
public static ConfigValue<Long> TIME = new ConfigValue<>("cooldown.time", Long.class, 3000L);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ public class ItemListener implements Listener {
|
|||||||
if (actions == null) return;
|
if (actions == null) return;
|
||||||
|
|
||||||
actions.execute(player);
|
actions.execute(player);
|
||||||
|
updateTime(player.getUniqueId());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user