AntiSpamPro
No funciona (falla al cargar) — Could not load plugin 'AntiSpamPro_1.4.1.phar': Invalid plugin manifest: Invalid Plugin "permissions": Nested permission declarations are no longer supported. Declare each permission separately. · Probado en PocketMine-MP 5.50.0 (PHP 8.4.27).
General
Antispam plugin with configurable delay, profanity filter (block swear words), automatic actions (kick, ban) and commands to change settings on the fly in console or in game.
Also detects command spam.
Commands
/asp - display the current AntiSpamPro settings
/asp kick - kick spammers
/asp ban - ban spammers
/asp banip - banip and ban spammers
/asp bancid - ban, banip and bancid spammers (if available)
asp set {1, 2 or 3} - change the allowed delay between chat to 1, 2 or 3 seconds
Permissions
You need the permission asp to use any of the commands. There is no spam bypass permission. The delay setting in config.yml can be set freely.
API
To configure other plugins to use the AntiSpamPro profanity filter, use this is onEnable():
this>getServer()->getPluginManager()->getPlugin("AntiSpamPro"); if (!this->antispampro) { this->getLogger()->info("Unable to find AntiSpamPro"); }
then use this to check for swear words:
if (this->antispampro && this->antispampro->getProfanityFilter()->hasProfanity($wordtocheck)) {...Do THIS....}
Credits
Kudos and thanks to:
https://github.com/mofodojodino/ProfanityFilter
and