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 name: zKoth
author: Maxlego08 author: Maxlego08
main: fr.maxlego08.koth.ZKoth main: fr.maxlego08.koth.ZKoth
version: 1.0.0.1 version: 1.0.0.2
softdepend: [PlaceholderAPI] softdepend: [PlaceholderAPI]
commands: commands:

View File

@ -93,7 +93,7 @@ public class Scheduler extends ZUtils{
switch (type) { switch (type) {
case DELAY: case DELAY:
return (calendar.get(Calendar.HOUR_OF_DAY) == hour && calendar.get(Calendar.MINUTE) == minutes return (calendar.get(Calendar.HOUR_OF_DAY) == hour && calendar.get(Calendar.MINUTE) == minutes
&& super.getDay().equals(day)); && super.getDay().equalsIgnoreCase(day));
case REPEAT: case REPEAT:
if (lastCreate != 0 && System.currentTimeMillis() > lastCreate) { if (lastCreate != 0 && System.currentTimeMillis() > lastCreate) {
lastCreate = System.currentTimeMillis() + (1000 * 60 * minutes); lastCreate = System.currentTimeMillis() + (1000 * 60 * minutes);