mirror of
https://github.com/Maxlego08/zKoth.git
synced 2025-02-20 02:22:06 +01:00
fix schedulers
This commit is contained in:
parent
95054b3c89
commit
d46bd90a1b
@ -1,6 +1,6 @@
|
||||
name: zKoth
|
||||
author: Maxlego08
|
||||
main: fr.maxlego08.koth.ZKoth
|
||||
version: 1.0.0.1
|
||||
version: 1.0.0.2
|
||||
softdepend: [PlaceholderAPI]
|
||||
commands:
|
@ -93,7 +93,7 @@ public class Scheduler extends ZUtils{
|
||||
switch (type) {
|
||||
case DELAY:
|
||||
return (calendar.get(Calendar.HOUR_OF_DAY) == hour && calendar.get(Calendar.MINUTE) == minutes
|
||||
&& super.getDay().equals(day));
|
||||
&& super.getDay().equalsIgnoreCase(day));
|
||||
case REPEAT:
|
||||
if (lastCreate != 0 && System.currentTimeMillis() > lastCreate) {
|
||||
lastCreate = System.currentTimeMillis() + (1000 * 60 * minutes);
|
||||
|
Loading…
Reference in New Issue
Block a user