chatcontrol

#185 - published lessthan a minute ago

ChatControl

This plugin adds the commands /mute and /unmute and allows to set a list of badwords.

There is also the permissions ChatControl.IgnoreBadwords and ChatControl.IgnoreMute to ignore penalties.

If you use regex, remember to use invariant patterns, https://regex101.com/ is a great help ;D

Default configuration


<?xml version="1.0" encoding="utf-8"?>
<ChatControlConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <AnnounceMute>true</AnnounceMute>
  <AnnounceUnmute>true</AnnounceUnmute>
  <Badwords>
    <string>suck</string>
    <string>fuck</string>
    <string>ass</string>
    <string>blame sven</string>
  </Badwords>
  <WarningsBeforeMute>3</WarningsBeforeMute>
  <WarningsBeforeKick>5</WarningsBeforeKick>
  <WarningsBeforeBan>-1</WarningsBeforeBan>
  <BanDuration>3600</BanDuration>
  <MessageColor>Yellow</MessageColor>
</ChatControlConfiguration>

Default english translation


<?xml version="1.0" encoding="utf-8"?>
<Translations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Translation Id="command_player_not_found" Value="Player not found" />
  <Translation Id="command_mute" Value="{0} is now muted" />
  <Translation Id="command_unmute" Value="{0} is now unmuted, his warnings have been reset" />
  <Translation Id="kick_ban_reason" Value="Too many badwords" />
  <Translation Id="you_are_muted" Value="You are muted, talk to the hand" />
  <Translation Id="badword_detected" Value="{0} is a badword, don't use it or bad things will happen to you. This is your {1}. warning." />
</Translations>

Commands and permissions


/unmute <player>

Permissions: unmute

Unmutes a player globally


/mute <player>

Permissions: mute

Mutes a player globally


Git changelog


41740a6161a3ad1 2017-10-23 07:36:35

Merge pull request #3 from persiafighter/patch-1

  • Bug, thanks @persiafighter

Download

Build #185
By downloading this file, you agree to our license terms.

Repository

github.com

License

MIT

Author

Sven