use of co.melondev.cubedpay.event.CubedEventRunnable in project CubedPay-Java by MelonDevelopment.
the class CubedPayAPI method startEvents.
default void startEvents(String shopID) {
if (EventMap.eventMap.containsKey(shopID))
return;
ScheduledExecutorService executor = Executors.newScheduledThreadPool(1);
executor.schedule(new CubedEventRunnable(this, shopID), 20, TimeUnit.SECONDS);
EventMap.eventMap.put(shopID, executor);
}
Aggregations