From a73e43168cdbec3122c2590a164e328c3873b518 Mon Sep 17 00:00:00 2001 From: BitHeaven Date: Wed, 22 Jan 2025 10:48:50 +0500 Subject: [PATCH] Add command cooldown --- src/main/java/ru/bitheaven/donpayintegplug/DonPayIntegPlug.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ru/bitheaven/donpayintegplug/DonPayIntegPlug.java b/src/main/java/ru/bitheaven/donpayintegplug/DonPayIntegPlug.java index 96654d6..612be55 100644 --- a/src/main/java/ru/bitheaven/donpayintegplug/DonPayIntegPlug.java +++ b/src/main/java/ru/bitheaven/donpayintegplug/DonPayIntegPlug.java @@ -28,7 +28,7 @@ public final class DonPayIntegPlug extends JavaPlugin { this.getServer().dispatchCommand(Bukkit.getConsoleSender(), commands.getFirst()); commands.removeFirst(); } - }, 1, 20 * 2); + }, 1, 20 * ConfigHandler.load().getCmdCooldown()); } @Override