chatcontrol

last built 6 days ago
Build #216
By downloading this file, you agree to our license terms.
Source: github.com
License: MIT
Maintainer: Sven
The RocketMod team curates a dozen of community plugins and could need your support.
Consider a donation to RocketMod and sponsor your favourite plugins or contribute code to them.

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:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <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:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <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


2bf36e5867ca481 2019-05-16 01:16:30

Fixed.

    04da8d62aedb390 2017-10-31 11:55:15

    Fix

      a28553ab751270c 2017-10-20 10:22:51

      Fix Bug

        c5846fcf20b8431 2017-10-20 10:20:57

        Bug

        • Fixed bug where the attempt to mute would still occur even if the target player was null.

        503cf406c55b335 2016-11-04 16:05:31

        ..

          3432b3cbbae6563 2015-12-23 18:14:49

          fix

            29896b1f36ed8b6 2015-10-10 13:17:48

            Custom colors

              4f2bc66ca6148bf 2015-10-10 13:03:57

              Cancel badword sentences, show mute message

                cfc5fb362f7675a 2015-10-10 12:55:09

                ...

                  22c664fd5fac430 2015-10-10 12:48:19

                  fixing ban, adding ChatControl.IgnoreBadwords and ChatControl.IgnoreMute

                    3e62e0aeb6157a4 2015-10-10 11:58:37

                    Initial commit