Add variable for control speed of requests
This commit is contained in:
@@ -22,7 +22,7 @@ public final class DonPayIntegPlug extends JavaPlugin {
|
||||
scheduler.runTaskTimer(this, () -> {
|
||||
thread.set(new DonateThread(this.getLogger()));
|
||||
thread.get().start();
|
||||
}, 1, 20 * 15);
|
||||
}, 1, 20 * ConfigHandler.load().getReqPerSec());
|
||||
scheduler.runTaskTimer(this, () -> {
|
||||
if (!commands.isEmpty()) {
|
||||
this.getServer().dispatchCommand(Bukkit.getConsoleSender(), commands.getFirst());
|
||||
|
||||
Reference in New Issue
Block a user