1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-04-12 23:25:41 +02: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; return true;
} }

View File

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