SmartChatClear

Description

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.

Features

  • 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

Default config.yml:

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.

Example:

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.

Example:

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.

Example:

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)

Change log

v1.1.0

  • 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.

v1.0.2

  • Updated for 1.4.7.

v1.0.1

  • Added color support.

v1.0.0

  • Release

Suggestions

If you have any suggestions for this plugin leave a comment with it or just PM me.

https://mcstats.org/plugin/smartchatclear


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    49385
  • Created
    Jan 3, 2013
  • Last Released File
    Jan 23, 2013
  • Total Downloads
    2,499
  • License

Categories

Members

Recent Files