Skip to content

Awzaw/AntiSpamPro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

General

Poggit Release

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->antispampro = $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

https://github.com/fastwebmedia/Profanity-Filter

About

The best AntiSpam/Censor plugin for PocketMine?

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages