With this plugin you can clear all the chat, your chat or the chat of a specified player. The chat is removed completly by replacing 120 empty lines, but you can edit the last 20 lines with everything you want. You can leave a empty line or write a message you want.
- Clears 120 lines.
- The last 20 lines are editable.
- Making a line empty.
- Fast usage.
- Color support.
- Getting player name (which execute command) on every line.
How to install
- 1) Download the plugin.
- 2) Enter in 'server-directory/plugins' and put the plugin there.
- 3) Start/reload the server.
- 4) Edit the config.yml then reload the server.
How to configure
private-messages: true lines: '1': This is line 1. '2': This is line 2. '3': This is line 3. '4': This is line 4. '5': This is line 5. '6': This is line 6. '7': This is line 7. '8': This is line 8. '9': This is line 9. '10': This is line 10. '11': This is line 11. '12': This is line 12. '13': This is line 13. '14': This is line 14. '15': This is line 15. '16': This is line 16. '17': This is line 17. '18': This is line 18. '19': This is line 19. '20': This is line 20.
- How to make an empty line. You need to add 'none' on specified line.
lines: '1': This is line 1. '2': none #This line will be empty. '3': This is line 3.
- How to get player name (which execute the command). You need to add %PLAYER% on the specified line.
lines: '1': This is line 1. '2': This is line 2. '3': Chat cleared by %PLAYER%. #It will be like Chat cleared by <NAME OF PLAYER>. '4': This is line 4. '5': This is line 5.
- How to set private messages. (commands: /ccm and /ccp) You need to set 'private-messages' boolean. If boolean is 'true' then players with recive the messages, if is 'false' it won't recive.
private-messages: true #This will enable '<player> has cleared your chat.' etc.
Commands / Permissions
- /smartchatclear - Main command. (permission: no permission)
- /smartchatclear help - Shows the screen with commands. (permission: smartchatclear.help)
- /smartchatclear reload - Reloads the config.yml (permission: smartchatclear.reload)
- /cc - Clears the chat for all players. (permission: smartchatclear.cc)
- /ccp <player> - Clears the chat for a specified player. (permission: smartchatclear.ccp)
- /ccm - Clears your chat. (permission: smartchatclear.ccm)
- Added Metrics.
- Added to config.yml 'private-messages' which changes messages to '/ccm' and '/ccp'.
- Changed the send client message method.
- Added '/smartchatclear reload' to reload config.yml.
- Updated for 1.4.7.
- Added color support.
If you have any suggestions for this plugin leave a comment with it or just PM me.