AntiSwear v1.3.7

AntiSwear

This plugin allows you to deal with out of control profanity some servers are plagued with. Keep the language under control by censoring it and punishing those repeat offenders if you so choose. This will effect all players by default, but can be bypassed with a simple permission node(See permissions below).

:gift: Donations

Creating plugins for Sponge takes time and effort. If you enjoy the hard work Iā€™ve put into to this please feel free to get my a cup of coffee. It is much appreciated.

Donate

:package: Features

  • Censor the words you choose based off config list.
  • Monitors number of times player curses.
  • Kick players for cursing.
  • Temporarily ban players for cursing. (Currently Bugged)
  • Permanently ban players for cursing.
  • Replace message when player curses
  • Run configurable command when player curses

:open_file_folder: Downloads

Release: Download Here

:wrench: Commands

  • /antiswear add
  • /antiswear remove
  • /antiswear ban
  • /antiswear tempban
  • /antiswear replace
  • /antiswear command
  • /antiswear kick

:hammer: Permissions

  • antiswear.ignore
  • antiswear.cmd.antiswear
  • antiswear.cmd.antiswear.add
  • antiswear.cmd.antiswear.remove
  • antiswear.cmd.antiswear.ban
  • antiswear.cmd.antiswear.tempban
  • antiswear.cmd.antiswear.replace
  • antiswear.cmd.antiswear.command
  • antiswear.cmd.antiswear.kick
1 Like

I still got this ā€œniceā€ list of swear words. You can bundle it with your plugin :wink:

Nice idea, could you make it so that it replaces the words with premade words or sentences, set by the user? For example, instead of using a nasty word it would say ā€œI like flowers.ā€ or ā€œI use my sisterā€™s deodorant.ā€

4 Likes

Added in latest version.

1 Like

Unless they have a dynamic IP Like me. A simple modem reboot gives me a new public IP.

Iā€™m having a problem with people saying grass and people getting strikes because of the plugin thinking they are saying a**. Any help?

EDIT:
Could this be fixed? Its believable that this will cause problems because of people saying ordinary words and getting strikes and banned.

Weā€™re having the same issue on the soon-to-be SoSVIII server, which could become a problem. Some sort of negation of common English words like grass, assume etc. would be very good to have :slight_smile:

1 Like

Oh crapā€¦thatā€™s a problem. I probably wonā€™t get a chance to fix this until after the holidays but itā€™s on my radar.

2 Likes

I suggest just checking to see if the words in question are surrounded by other letters.

The fact is, there isnā€™t a good way to make a swear filter that gets everything without flagging words that are otherwise okay.

I would suggest having two categories of words. Some of them should be auto strikes.

Others should simply notify admins.

The server I ran was relatively small, so I never had to go to that extreme, but can understand the need. I did have a zero tolerance policy. A few players got left in a bedrock box with silverfish spawners and no inventory forever dying and respawning. They usually wouldnā€™t return and would take their trouble making friends with them.

1 Like

Latest changes should cause fewer false positives.

Can you add a command to enable/disable kick and ban options from in game?

Iā€™m planning on it. Just havenā€™t gotten around to it yet

1 Like

you should make all your permissions lowercase.

Best practice?

Done

2 Likes

Do you plan to support regexp?

You mean like added a regex entry in the config list?

Support regexp in the section Words. It would be very helpful.

From what I can tell regex already does work, however the character replacement doesnā€™t work correctly due to the off character count between the word typed in chat and the word in the list. Iā€™ll see about fixing that.

It would be -amazing- if you could have replacement messages for individual swears!