CapsGuard
CapsGuard
Description
CapsGuard was developed after i got annoyed with to many users spamming caps on my server. It has many features like word blocking, ignore certain caps words, set caps to lowercase if over certain percentage, cancel caps message if over certain percentage and i have much more planned. I like you to suggest features and i will add as many as i can. I hope you like this plugin.
Bugs
- /cg reload currently doesnt work properly with the new config.
To-Do
- Commands In-Game To Change Some Config Options
- Option To Take Money From Player Using iConomy If They Use A Certain Percentage Of Caps (Having Problems With This But I Will Keep Trying... Sorry)
- Make A Customizable Command Run When The Message Is Blocked By This Plugin (Might Not Be Possible)
- Change Caps To Lowercase When Over The Specified Percentage (Implemented :D)
Commands
- /cg reload this command will reload the config of the plugin
Features
- Blocks/Replace Caps Over A Configurable Percentage (Replace will make the whole sentance to lowercase)
- Can Add Ignored Phrases/Words To The Config
- Can Ignore All Phrases Under A Certain Length That Is Adjustable In The Config
- Customizable Message When CAPS Message Is Blocked
- Add Words To A Blocked List To Block Them
- Customizable Message When Word Is Block
- Permissions To Bypass Caps Block And Specified Word Block
- Admin Alerts On Caps Or Blocked Word
Permissions (SuperPerms)
- capsguard.bypass.caps this permission bypasses the caps block (defaults to OP)
- capsguard.bypass.blocked this permission bypasses the blocked words (default to OP)
- capsguard.alert.caps this permission alerts the user to someone using caps
- capsguard.alert.blocked this permission alerts the user to someone using a blocked word and tells them which word it was
- I have tested these permissions with PermissionsEx and i will not be testing with other permissions plugins... sorry**
@Mayhem777
Hi
I will probably be re-writing this plugin from the bottom up because the code is messy and it was the first plugin i ever wrote. I will fix this issue at that time but i currently dont have time to do much coding at all due to exams.
Thanks
Zackpollard
P.S if you think you can fix it yourself feel free. The code is on github so just make a pull request and i will view it. Code is under the name of Zackpollard or GreenZack but it should find it if u type "Capsguard github" into google.
Can you make individual words block? if i configure "ill" all words with those letters get blockes, hill, chill, drill etc... thanks!
Can you add emoticons blocker? If someone say "Hi Noobs :p" on chat will be only displayed "Hi Noobs"
@Ferkswe
Yes, This plugin is still being updated, but why fix what isn't broken :D If you have any amazing ideas for the plugin, i can add them but currently i am revising for my many exams and so have no time for any minor development. Only bug fixes and major updates atm.
Thanks
Zackpollard
Is this thing still getting updated?
good plugin!
Done testing,love it! Thanks for making this.
Checking this out now.
@xDeeKay
Hi
You can add a custom message but only if you aren't using the ToLowerCase feature... If you want this feature then i can add it and i might be able to get it done tonight but im busy making other plugins atm :P
Thanks
Zackpollard
@zackpollard
Ahh I see, thank-you :) I found this plugin by you posting on the old plugin I used (bAntiCaps) and that plugin had the ability to set a custom message when people use caps. It would be a nice feature to add to the plugin.
Hi
I have realised your problem. You have the ToLowerCase feature active. When this is active the Caps message doesn't appear because it just changes their message to lowercase anyway so it doesn't need to show up. If you want this feature then you can request it but it wont get done for a week or two cause im going on holiday. If you want to block and bring the caps message up then you just have to disable the ToLowerCase feature.
Thanks
Zackpollard
If a user types 'CAPS CAPS CAPS' for example, it will change it to 'caps caps caps' but the 'MessageOnCaps' message wont appear. Yes i'm using the CapsGuard 1.0.1 for CB 1.2.3-R0.1 Mar 08, 2012. And I have also tried regenerating the config.
Is there any permission I need to give the groups? or is there something I need to add to the 'MessageOnCaps'?
@xDeeKay
After checking my code, this should not be the case. Are you using the latest version and if so could you try regenerating your config please. Also, does it only occur if they use all caps or if they just go over the percentage at all.
Thanks
Zackpollard
@xDeeKay
Hi
I will fix this in 1.0.2 . I have anoter fix for the ignore words that i need to push and forgot about but i have been so busy lately :P
Thanks
Zackpollard
Great plugin so far, but I have a problem. When a user types in all caps they don't get the 'MessageOnCaps' message. There is no error on the console either. Heres my config:
Fantastic big love!
Love it! \o/ WooHoo!
Wow so much awesome packed into two simple files. Great work.
Ok i have realised the problem and i am going to work on a fix so that if someone hello it wont block it. But if they say hell it will. Maybe have something so if they said Fu*k also as a optional feature. I cant do anything until tonight as its mothersday but i will see what i can do for this problem.
Thanks
Zackpollard
Hi, I can't seem to get the IgnoreWords function to work properly. I have "hell" blocked successfully, but I want users to be able to say "hello", so I added the word to IgnoreWords and rebooted the server... and it still blocks hello for having hell in it. This happens for any word (hell/hello is only an example) no matter how many reloads and independent of whether tolowecase is enabled/disabled. I'm using CG 1.0.1 with Bukkit Beta R0.2.