mirror of
https://github.com/CarmJos/ScriptItems
synced 2024-09-19 13:25:50 +00:00
完成消息提示
This commit is contained in:
parent
46c9b0e4bf
commit
37bde4e082
@ -127,7 +127,7 @@ public class ItemListener implements Listener {
|
||||
if (!this.clickTime.containsKey(uuid)) return 0;
|
||||
if (!PluginConfig.CoolDown.ENABLE.get()) return 0;
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user