Package com.ultikits.ultitools.abstracts.command.validation.validators
package com.ultikits.ultitools.abstracts.command.validation.validators
Built-in command validators.
Available validators:
SenderTypeValidator- Validates sender is Player or Console (order: 100)PermissionValidator- Validates permissions and OP status (order: 200)UsageLockValidator- Prevents concurrent command execution (order: 250)CooldownValidator- Manages command cooldowns (order: 300)
Validator Order:
Validators are executed in order from lowest to highest. Default orders:
- SenderTypeValidator (100) - Fail fast if wrong sender type
- PermissionValidator (200) - Check permissions before processing
- UsageLockValidator (250) - Prevent duplicate execution
- CooldownValidator (300) - Rate limiting
- Since:
- 6.2.0
-
ClassesClassDescriptionValidates and manages command cooldowns for players.Validates that the command sender has the required permission.Validates that the command sender matches the expected target type.Validates and manages command usage locks to prevent concurrent execution.