fix schedulers

This commit is contained in:
Maxlego08 2020-04-16 10:23:55 +02:00
parent 95054b3c89
commit d46bd90a1b
2 changed files with 2 additions and 2 deletions

View File

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

View File

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