1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-02-04 14:31:40 +01:00

Only one scheduler is needed here

This commit is contained in:
Zrips 2019-08-16 16:44:42 +03:00
parent 229be42d64
commit feed9d036f
2 changed files with 2 additions and 11 deletions

View File

@ -127,15 +127,6 @@ public class ScheduleManager {
}
}
Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {
@Override
public void run() {
scheduler();
return;
}
}, 30 * 20L);
return true;
}

View File

@ -50,7 +50,7 @@ public class PaymentData {
public Double GetAmount(CurrencyType type) {
if (!payments.containsKey(type))
return 0D;
return payments.get(type);
return (int) (payments.get(type) * 100) / 100.0;
}
public Double GetAmountBylimit(CurrencyType type, int limit) {