CleanMyChat
Hey there. This is my first bukkit plugin. Ever had a player on your server who is tired of spam/annoying users/etc. who wished he/she could clear the chat? Well, the problem with that is that the chat gets cleared for everybody on the server. However, with CleanMyChat, players can clear the chat on their end and also for everybody (probably would want to give only admins the permission) as well as a few other various things with a few simple commands!
CleanMyChat is a simple and lightweight plugin that allows players to clear the chat on their end only, meaning that when a player clears the chat using the command, the chat is cleared for them but for others who wish to not clear the chat, it remains the same! It also allows players to clear the chat for everybody (on everyone's end) and also do it silently! It even allows players to use notify everybody that they are AFK or no longer AFK!
Allow players to clear the chat that they see using /cleanmychat! The chat will remain the same for all other users and will only be cleared for the user that issued the command! Allow players to clear the chat on everyone's (for everybody) end using /cleanchat! Allow players to clear everybody's chat silently (same as /cleanchat except it doesn't say who did it, or anything else for that matter) by using /silentclean. Allow players to say Hello to your server by using /hi! Allow players to find out more about CleanMyChat by using /cleanmychathelp! Allow players to use /afk to notify players that they are AFK as well as use /unafk to notify players that they are no longer afk (the player who issued the /afk command will be reminded to use /unafk when they are no longer afk).
/cleanmychat - Clears the player's chat for him/her only. The chat will remain just the way it was for everyone else.
/cleanchat - Clears everybody's chat!
/silentclean - Same as /cleanchat, but doesn't say who cleared the chat!
/afk - Notifies everybody that the player is AFK!
/unafk - Notifies everybody that the player is no longer AFK (the player who sent the command will be reminded to use /unafk when they are no longer afk)!
/cleanmychathelp - Info about the plugin and commands
/hi - "Talk" to the server, will reply back with "Hi (Player's name here)!"
cleanmychat.clear - Allows the player to do /cleanchat
cleanmychat.clean - Allows the player to do /cleanmychat
cleanmychat.silent - Allows the player to do /silentclean
cleanmychat.afk - Allows the player to do /afk
cleanmychat.unafk - Allows the player to do /unafk
cleanmychat.hi - Allows the player to do /hi
cleanmychat.help - Allows the player to do /cleanmychathelp
Drag and drop the jar file into your plugins folder and restart your server! Be sure to set the permissions!
Version 1.2 released - 9.04.2013
- Added /afk
- Added /unafk
Version 1.1 released - 8.08.2013
- Added permissions
- Added /cleanchat
- Added /silentclean
Version 1.0 released - 8.07.2013
- First version
Note: This video is outdated and does not showcase /afk or /unafk
http://www.youtube.com/watch?v=zcMY8t2Cg2w
- Adding a command that clears the chat for everyone, not just the person who did the command. (With a permission node, of course). - Done
- Add a config file to be able to customize messages, etc.
- Add permissions - Done
CleanMyChat was originally made for AdventureWalls, the server IP is aw.pwnz.org and the website can be found at adventurewalls.enjin.com
Love my plugin? Absolutely hate it? Leave feedback, bug reports and anything else below! Thanks!
Swimmer, I decompiled your plugin (Im a bad boy xD) and holy crap, your code, is horrible.
Im not trying to be mean, but your plugin, is men't to LAG the living s*
You send a hundred methods to 'clear' the chat, it takes up SO much memory. Use this: for (int i = 0; i < 50) { player.sendMessage(" "); }
Thanks swim! Gonna use this on my server :D
@JPG2000F
Not a million, about a hundred if I recall correctly. I've done extensive testing and have come across no lag, nobody has reported lag either.
@swimmer1929
I decompiled your code (Just to look, no steally) and it was kind of bad. You send the player a million messages, witch is horrible for lag, and you also send them 42 messages to many.
@swimmer1929
And, thanks for your help
@Fr33stylerhd
Glad you like it! :D So you mean you want to be able to do /cleanchat or /silentclean so that it clears the chat in game but doesn't clear the chat in console? I could try doing that... thanks for the suggestion.
I love this plugin :), but i don't want to clear my console, you can to fix please
@Xhatry
Thanks! Glad you like it!
Sir, let me tell you: This thing is amazing. Thanks.
PD: Good work with the video and the description, is very nice and clean.
@javieraizpuru
Let me know how it goes! :D
Trying it :)