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:
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user