mirror of
https://github.com/Zrips/Jobs.git
synced 2025-02-04 06:21:50 +01:00
Only one scheduler is needed here
This commit is contained in:
parent
229be42d64
commit
feed9d036f
@ -127,15 +127,6 @@ public class ScheduleManager {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
scheduler();
|
||||
return;
|
||||
}
|
||||
}, 30 * 20L);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -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) {
|
||||
@ -75,7 +75,7 @@ public class PaymentData {
|
||||
}
|
||||
|
||||
public void AddNewAmount(CurrencyType type, Double Payment) {
|
||||
AddNewAmount( type, Payment, null);
|
||||
AddNewAmount(type, Payment, null);
|
||||
}
|
||||
|
||||
public void AddNewAmount(CurrencyType type, Double Payment, Long time) {
|
||||
|
Loading…
Reference in New Issue
Block a user