CapsBlock
Description:
I've been looking for and have found a number of plugins which aim to block the excessive use of caps that often comes with younger players, however having had no luck getting any of them to work, I wrote my own. CapsBlock filters messages which contain excessive caps usage, currently 'excessive' is defined in the config, default is anything above 50% Caps. The message can then either be blocked, replaced, or converted to lowercase. Alternatively, a user can be kicked for attempting to send a message which contains a percentage of caps greater than what is allowed.
Installation:
1. Download the .jar
2. Place the .jar in your plugins directory
3. Restart the server Configuration:
ReplaceWithLowerCase - Replace all the caps in the message with lowercase and display it as normal
NotifyOnReplaceWithLowerCase - Notify the user their message has been amended?
ReplaceWithLowerCaseMessage - Define the notification to send the user ReplaceText - Replace the message text with your own text
NotifyOnReplaceText - Notify the user why their message has been replaced?
ReplaceTextMessage - Define the notification to send the user
NewText - Define the text to replace the user's message with CancelText - Cancel a message with excessive caps
NotifyOnCancelText - Notify the user their message has been cancelled? KickOnCaps - Kick a user who sends a message with excessive caps
KickMessage - Define the kick message PercentCaps - Define what percent of caps in a message is considered 'excessive'
MinMsgLength - Define the minimum length of a message to be filtered
Commands:
• /CapsBlock - Display CapsBlock Menu
• /CapsBlock reload - Reload the config
Permissions:
• capsblock.ignore - Users with this permission will not have their messages filtered.
• capsblock.reload - Users with this permission will be able to reload the CapsBlock config
Youtube Review by Ultibyte To Do:
•Add option to define the minimum length for a filtered message (Currently messages under 2 chars are not filtered) Done in 0.6
•Cater for punctuation by not counting it toward the total message length Done in 0.3
Thankyou for your support! :D Change-Log:
I've been looking for and have found a number of plugins which aim to block the excessive use of caps that often comes with younger players, however having had no luck getting any of them to work, I wrote my own. CapsBlock filters messages which contain excessive caps usage, currently 'excessive' is defined in the config, default is anything above 50% Caps. The message can then either be blocked, replaced, or converted to lowercase. Alternatively, a user can be kicked for attempting to send a message which contains a percentage of caps greater than what is allowed.
Installation:
1. Download the .jar
2. Place the .jar in your plugins directory
3. Restart the server Configuration:
ReplaceWithLowerCase - Replace all the caps in the message with lowercase and display it as normal
NotifyOnReplaceWithLowerCase - Notify the user their message has been amended?
ReplaceWithLowerCaseMessage - Define the notification to send the user ReplaceText - Replace the message text with your own text
NotifyOnReplaceText - Notify the user why their message has been replaced?
ReplaceTextMessage - Define the notification to send the user
NewText - Define the text to replace the user's message with CancelText - Cancel a message with excessive caps
NotifyOnCancelText - Notify the user their message has been cancelled? KickOnCaps - Kick a user who sends a message with excessive caps
KickMessage - Define the kick message PercentCaps - Define what percent of caps in a message is considered 'excessive'
MinMsgLength - Define the minimum length of a message to be filtered
Commands:
• /CapsBlock - Display CapsBlock Menu
• /CapsBlock reload - Reload the config
Permissions:
• capsblock.ignore - Users with this permission will not have their messages filtered.
• capsblock.reload - Users with this permission will be able to reload the CapsBlock config
Youtube Review by Ultibyte To Do:
•
•
Thankyou for your support! :D Change-Log:
0.6.4
- Added /me command to capsblock monitoring (Compatible with mChat)
0.6.3
- Minor Bugfix: Updated Command alias
- Minor Bugfix: Removed some debug text from menu
0.6.2
- Kicking user changed to execute in main server thread (Updated for Thread Safety)
0.6.1
- Updated for 1.3
0.6
- Added MinMsgLength configuration option.
0.5
- Fixed the menu /capsblock
- Minor bugfix / code cleanup
0.4
- Fixed the menu
- Mild improvements to the way punctuation is handled
You are kicking in an async thread. Please don't.
What EventPriority is this plugin using? It seems to be conflicting with my chat plugin.
Working on 1.4.x?
@Balthasarx
Might that be one of your chat plugins set to prevent users sending links? I know one of mine prevents links being shown in pms by removing the '.'
@Balthasarx
Unfortuntaely I'm unable to replicate this strange glitch, and there's nothing in the code that effects punctuation in any way.
I'm therefore assuming it may be the result of a different or perhaps conflicting plugin.
Are you able to provide a list of plugins?
Cheers. :)
Got to say we have been enjoying caps block on Averad. We have encountered one weird bug though. if . is imediately before or after anything it gets removed.
@UltiByte
Hey now, that's pretty cool.
Thankyou. :)
I might squeeze a link for it into the description above. :D
Hello!
I thought your plugin was really useful, so I made a video about it! http://www.youtube.com/watch?v=u5curfE7-6g
Feel free to use it how you like :P
Thanks for the fantastic error reports guys, really helps get a clear picture. :D
With each development build it's very likely we'll be seeing more errors/bugs from various plugins.
While I will endeavour to stay on top of changes which totally break a possibly essential plugin, many plugin updates for the 1.3 API will not be finalised until a stable version of bukkit is released. :)
@Nickshelton80
I'm getting the same error.
Latest version of Craftbukkit and CapsBlock. Is this supposed to happen? http://pastebin.com/CgfkYrAg
@Mhjort
Thanks for your error report. :)
CapsBlock has been updated for 1.3 (ver 0.6.1)
You can download an early copy by clicking the link below.
on 1.3.1 build 2289
2012-08-04 11:07:44 [INFO] [CapsBlock] Enabling CapsBlock v0.6 2012-08-04 11:07:44 [INFO] [CapsBlock] 0.6 enabled. 2012-08-04 11:07:44 [WARNING] [CapsBlock] "CapsBlock v0.6" has registered a listener for org.bukkit.event.player.PlayerChatEvent on method "public void me.odium.capsblock.CapsBlock$PListener.onPlayerChat(org.bukkit.event.player.PlayerChatEvent)", but the event is Deprecated. Server performance will be affected; please notify the authors []. org.bukkit.plugin.AuthorNagException at org.bukkit.plugin.java.JavaPluginLoader.createRegisteredListeners(JavaPluginLoader.java:302) at org.bukkit.plugin.SimplePluginManager.registerEvents(SimplePluginManager.java:507) at me.odium.capsblock.CapsBlock$PListener.<init>(CapsBlock.java:42) at me.odium.capsblock.CapsBlock.onEnable(CapsBlock.java:30) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:357) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:263) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:245) at net.minecraft.server.MinecraftServer.i(MinecraftServer.java:296) at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:275) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:225) at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:140) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:380) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
The plugin is enabled and appears to be running perfectly fine on my server, but it is not correcting any of the caps usage. In addition, neither of the two commands are recognized even though it is enabled on my server. There are no errors in the console on server start. Here is my config: http://pastebin.com/E5fi2L5k Any help with this issue would be greatly appreciated!
Doing perfect :) Thank you for this small but cool plugin.
Thanks For This!
Thanks for this :)
@Enrux @Ta6akus3
I've not seen any issues with servers housing 50+ users.
I've not seen it's impact on a server housing 100+ users, however I'd be interested to know myself. :)
@Ta6akus3
I also got the same impression
Great Plugin! Thanks a lot!
---------------------------Join My Server - MotionCraft Factions