Chat Clearer
Overview
The ORIGINAL chat clearing plugin, now on BukkitDev!
The plugin instantly removes all content from the chat for all players. This is perfect to stop the spread of advertising or to instantly 'blank out' important information leaked into chat accidentally.
Usage
- [/cc] Instantly clears chat of all content.
- [/cca] Clears the chat and announces the player who cleared it.
- [/ccs] This only clears the chat of the player who typed it.
- [/ccp <player>] This clears the chat of the specified player. (Only supports full usernames)
Permissions
- [/cc] = chatclearer.clear
- [/cca] = chatclearer.announce
- [/ccs] = chatclearer.self
- [/ccp] = chatclearer.others
Installation
To install, simply add the .jar file to your plugins folder and reload your server.
-
View User Profile
-
Send Message
Posted Nov 30, 2013@Plo124
It should work with all new versions of Bukkit. The first versions of the plugin used that method of clearing, however that also output the blank message to the log, which was undesirable. The current solution simply cycles through all players on the server and specifically sends them the blank messages. This also allows for more control over who can actually gets sent the messages.
-
View User Profile
-
Send Message
Posted Nov 27, 2013I don't see why your plugin isn't available on many versions of Bukkit (based on the comments). To clear the chat is as simple as:
for (int I = 0;i < 121;i){ this.getServer().broadcastMessage(""); }
-
View User Profile
-
Send Message
Posted Jun 30, 2013@MrTheGame64
Dammit. It looks like it's been broken by an update. I'll have to get that sorted.
-
View User Profile
-
Send Message
Posted Jun 30, 2013Does not work for me:
18:55:44 [SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'cc' in plugin ChatClearer v0.5 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:18 9) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.dispatchCommand(CraftServe r.java:523) at net.minecraft.server.v1_5_R3.PlayerConnection.handleCommand(PlayerCon nection.java:965) at net.minecraft.server.v1_5_R3.PlayerConnection.chat(PlayerConnection.j ava:883) at net.minecraft.server.v1_5_R3.PlayerConnection.a(PlayerConnection.java :840) at net.minecraft.server.v1_5_R3.Packet3Chat.handle(Packet3Chat.java:44) at net.minecraft.server.v1_5_R3.NetworkManager.b(NetworkManager.java:292 ) at net.minecraft.server.v1_5_R3.PlayerConnection.d(PlayerConnection.java :109) at net.minecraft.server.v1_5_R3.ServerConnection.b(SourceFile:35) at net.minecraft.server.v1_5_R3.DedicatedServerConnection.b(SourceFile:3 0) at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:5 81) at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:2 26) at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:4 77) at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java :410) at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:5 73) Caused by: java.lang.NullPointerException at me.JamEngulfer221.chatclear.chatclear.onCommand(chatclear.java:29) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ... 15 more
-
View User Profile
-
Send Message
Posted Apr 24, 2013what are the perms???
-
View User Profile
-
Send Message
Posted Feb 28, 2013@joehot200
What about it doesn't work? Can I have the StackTrace error generated by it (if there is one).
-
View User Profile
-
Send Message
Posted Jan 16, 2013oh, and it does not work :(
-
View User Profile
-
Send Message
Posted Jan 16, 2013oh! amusingly, I used this plugin when I was only a 50 slot server xD.
anyway, this will be good again :)
getting it.
-
View User Profile
-
Send Message
Posted Jan 16, 2013Can you also add a feature that will allow me to clear my own personal chat?
Maybe it could be /cpc (clear personal chat)
If there is already this feature I am sorry, but the overview was a bit vague.
-
View User Profile
-
Send Message
Posted Nov 4, 2012Got this error with v0.5 : http://pastie.org/5182295
But with v0.4 everything woks fine. I use CB 1.4.2-R0.2, because R0.1 is broken.
-
View User Profile
-
Send Message
Posted Nov 1, 2012great plugin and helpful plugin
works fine with CB 1.4.2
hope to update & make permission nodes (only an op apple to use /cc)
thanks a lot,
-
View User Profile
-
Send Message
Posted Sep 28, 2012Hey it would be great if you can add an option to add a customisable colorable message at the end. :)
-
View User Profile
-
Send Message
Posted Aug 28, 2012@Splinti98
I shall have a look at doing that. It shouldn't be too hard!
-
View User Profile
-
Send Message
Posted Aug 20, 2012Can you add a config-yml please, because i want to make the message with /cca colorful :)