Add command cooldown

This commit is contained in:
BitHeaven 2025-01-22 10:48:50 +05:00
parent ffeef0b7ac
commit a73e43168c

View File

@ -28,7 +28,7 @@ public final class DonPayIntegPlug extends JavaPlugin {
this.getServer().dispatchCommand(Bukkit.getConsoleSender(), commands.getFirst()); this.getServer().dispatchCommand(Bukkit.getConsoleSender(), commands.getFirst());
commands.removeFirst(); commands.removeFirst();
} }
}, 1, 20 * 2); }, 1, 20 * ConfigHandler.load().getCmdCooldown());
} }
@Override @Override