1
mirror of https://github.com/CarmJos/ScriptItems synced 2024-09-19 21:35:50 +00:00

完成消息提示

This commit is contained in:
Carm Jos 2022-03-13 13:18:02 +08:00
parent 46c9b0e4bf
commit 37bde4e082

View File

@ -127,7 +127,7 @@ public class ItemListener implements Listener {
if (!this.clickTime.containsKey(uuid)) return 0; if (!this.clickTime.containsKey(uuid)) return 0;
if (!PluginConfig.CoolDown.ENABLE.get()) return 0; if (!PluginConfig.CoolDown.ENABLE.get()) return 0;
long start = this.clickTime.get(uuid); long start = this.clickTime.get(uuid);
return (int) ((PluginConfig.CoolDown.TIME.get() * 1000 - (System.currentTimeMillis() - start)) / 1000) + 1; return (int) (PluginConfig.CoolDown.TIME.get() - ((System.currentTimeMillis() - start) / 1000)) + 1;
} }