⚡
Update for VeloCity-Security NotificationCommand
✅
Fixes & Improvements
- Fixed NullPointerException when using /velocitysecurity iptables if entries in the config (ip-block-success-message, ip-unblock-message, etc.) were missing.
- All messages in VelocityNotificationCommand.yml now have safe default values → no more crashes if entries are missing.
- Added whitelist support with customizable message.
- Improved config loader: every text is editable, defaults are applied automatically if missing.
⚡
Correct command to block an IP:
/velocitysecurity iptables <IP-Address> <Duration>
Duration formats:
- m → minutes
- h → hours
- d → days
Examples:
- /velocitysecurity iptables xx.xxx.xxx.xxx 1m → blocks the IP for 1 minute
- /velocitysecurity iptables xx.xxx.xxx.xxx 2h → blocks the IP for 2 hours
- /velocitysecurity iptables xx.xxx.xxx.xxx 1d → blocks the IP for 1 day
⚠️
Important Notice:
After updating, please
delete or regenerate the file
plugins/Velocity-Security/VelocityNotificationCommand.yml
so that all new default messages and the whitelist are created correctly.