CHAT HANDLER // NEW PLUGIN

Status
This thread has been locked.

Synic

Programmer
Premium
Feedback score
0
Posts
490
Reactions
250
Resources
0
HzvKShs.png


A powerful moderation tool designed to block and/or limit many common problems. This plugin is the successor to my old chat restriction plugin, ChatUtility. All buyers of ChatUtility will be transferred to this plugin, so you will not have to re-purchase the plugin. In addition, to all those users who are using DeluxeChat in their server, message me on Skype (via.synic) and I will provide you a DeluxeChat compatible version.

https://www.spigotmc.org/resources/chat-handler.9008/


FEATURES:

Anti-Advertising
- Chat Handler uses two powerful regular expressions (sequence of characters that define a search pattern) for both URLs and IPs advertised in the chat. If a player advertises, the server owner can specify in the configuration file what command should be executed such as a mute or ban command. In addition, the server owner can also toggle the option to alert staff of the advertiser and the message containing the advertisement. I have also included a white-list as well as a blacklist in the file.


Capitals Limiter
- The configuration file allows users to specify the maximum amount of capital letters that can be outputted in the chat for one word. For example, if the maximum is set to '3', the sentence, "I HAVE A LOT OF CATS LOL." Then the output would be, "I have a LOT OF cats LOL." So any words that contain a number of capitalized letters that are above the maximum will be forced to lowercase.


Character Limiter
- This feature will reduce the amount of consecutive repetitive letters to the number specified in the file. For example, if the maximum repetitions is set to '2', the sentence "I haveeeeeeeee to goooooooooo peeeeeeeee." will reduce to "I havee to goo pee."


Chat Cooldown
- Players will not be allowed to send messages until after a couple of seconds defined in the config. If the time is set to '3', then users can only send messages after every 3 seconds from their last message, allowing chat to flow nicely.


Repetitive Message Blocker
- This feature will prevent users from sending the same message twice. Although, the chat cooldown may be in place, this will ultimately prevent users from sending the same message again and again.


Swear Protection
- For this feature, I have given server owners the option to either block messages sent containing swear words (defined in the configuration file), or have the plugin censor the words with asterisks.


Warn System (NEW)
- As requested by many users, I have added a fully functional warn system that will trigger certain punishments after being warned consecutively. In the configuration file, server owners can specify the valid reasons for warning, such as "Racism" or "Harassment". This feature however, is a bit limited. Only three warnings can be held against a player. The first warn does nothing. The second warn performs a command (you can specify, but mute by default). The third warn performs a command (you can specify, but temp-ban by default). I've added a time frame in which these warns will still remain attached to the user. After this time frame is up (30 minutes by default), the warns will reset.


Staff Chat (NEW)
- This is a small addition but I thought it would be nifty feature to include. Staff can use the command, "/s <message>" to relay messages between other staff members. The format of the staff chat can also be edited with color codes.


Lock / Clear Chat
- This is a continued feature from ChatUtility where staff can clear or lock the chat with certain commands.


* The configuration file allows you to disable and enable any of these features at your own will. The only feature that you cannot disable is the lock and clear chat commands. *

CONFIGURATION FILE:
Code:
commands:
       lockchat:
            aliases: [lc, lockc, lchat]
            description: The base command for locking chat.
       clearchat:
            aliases: [cc, clearc, cchat]
            description: The base command for clearing chat.
       warn:
            aliases: [w]
            description: The base command for warning players.
       staff:
            aliases: [s, sc]
            description: The base command for talking within staff chat.

permissions:
     chat.clear:
            description: The permission used to give access to ./clearchat.
     chat.lock:
            description: The permission used to give access to ./lockchat.
     chat.staff:
            description: The permission used to give access to ./staff.
     chat.warn:
            description: The permission used to give access to ./warn.
     chat.lock.bypass:
            description: The permission used to allow players to talk during a locked chat.
     chat.cooldown.bypass:
            description: The permission used to allow players to talk without a cooldown.
     chat.swear.bypass:
            description: The permission used to allow players to say blacklisted words.
     chat.caps.bypass:
            description: The permission used to allow players to freely use capitalized letters.
     chat.character.repeat.bypass:
            description: The permission used to allow players to talk with duplicate letters.
     chat.message.repeat.bypass:
            description: The permission used to allow players to say duplicate messages.
     chat.advertise.bypass:
            description: The permission used to allow players to advertise URLs or IPs.
     chat.advertise.alert:
            description: The permission used to allow players to be alerted of an advertisement.
     chat.blacklist.bypass:
            description: The permission used to allow players to bypass blacklisted words, IPs, or URLs.
     chat.bypass.*:
            description: The permission used to give all bypass related permissions.
            children:
                chat.lock.bypass: true
                chat.blacklist.bypass: true
                chat.cooldown.bypass: true
                chat.caps.bypass: true
                chat.spam.bypass: true
                chat.message.repeat.bypass: true
                chat.character.repeat.bypass: true
                chat.advertise.bypass: true
NOTES:
- This plugin has been tested on both 1.7 and 1.8 and does work on both versions. However, I am not responsible if the plugin does not work on the protocol-hack jar.


- I have included both a Java 7 and Java 8 version of the plugin. I have not tested the Java 7 version as I do not have a Java 7 server to test it with however, should it not work, I will give a refund.

- I have also included a detailed guide that describes each variable in the configuration file.

TERMS OF SERVICE:
- Unless the provided Java 7 jar does not work with your Java 7 server, no refunds will be given.

- You are not allowed to resell or distribute this plugin.
- You are not allowed to take credit for this plugin or claim it as yours.
- You are not allowed to decompile the plugin and/or modify its source.
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

jeeperscreeper77

Feedback score
0
Posts
134
Reactions
17
Resources
0
Nice, but I hate using a command for staff chat, I like putting a symbol before my text.
 

Synic

Programmer
Premium
Feedback score
0
Posts
490
Reactions
250
Resources
0
Nice, but I hate using a command for staff chat, I like putting a symbol before my text.
I've thought about doing it that way, but I didn't want to include it because it might interfere with my already established events that look for advertising, caps, spam, etc. But, I did add an alias for the staff chat command, "/s", so although it's not as easy as putting in one special symbol and then the text, it's only a difference by one character.

"/s Hey, this is Bob."

vs

"!Hey, this is Bob."

So, I guess you can say the difference is trivial, but if a lot of users request, I might attempt to add it your way.
 

Synic

Programmer
Premium
Feedback score
0
Posts
490
Reactions
250
Resources
0
Last edited:

Synic

Programmer
Premium
Feedback score
0
Posts
490
Reactions
250
Resources
0
Bump.

(Hope you don't mind a bumped a little early).
 

TechBanana

ヾ(⌐■_■)ノ♪
Deactivated
Feedback score
48
Posts
818
Reactions
1,060
Resources
0
Just a tip coming from previously being a staff member on a server
After a player is warned, there should be a small cooldown (20 seconds maybe?). In that time, he can't be warned again.
This is mainly because 2 staff members may accidentally warn him at the same time, and he will receive the second punishment (the designated command)
 

Synic

Programmer
Premium
Feedback score
0
Posts
490
Reactions
250
Resources
0
Just a tip coming from previously being a staff member on a server
After a player is warned, there should be a small cooldown (20 seconds maybe?). In that time, he can't be warned again.
This is mainly because 2 staff members may accidentally warn him at the same time, and he will receive the second punishment (the designated command)
Ah, I forgot about that. I'll be sure to include it next update. Thank you for your feedback!
 
Status
This thread has been locked.
Top