Sueta
CH

ChatCommands

1.0

Provides useful chat commands.

·Plugin

INFORMATION

ChatCommands is a chat plugin, providing some useful commands such as "/mutechat", "/unmutechat", "/clearchat" etc. That's my first plugin, which I post so I hope it will be useful for you :)

COMMANDS

  • /chatcommands - Lists all available commands.
  • /clearchat | player | - clears the whole chat or the specified players's one.
  • /clearownchat - Clears your own chat.
  • /mutechat - Mutes the whole chat.
  • /unmutechat - Unmutes the chat.
  • /message <player> <message> - Sends message to the specified player.

PERMISSIONS

You can find all plugin's permission here: https://pastebin.com/znUVb9kM

CONFIGURATION

From the config.yml file you can change the plugin's prefix, while from messages.yml you can edit all plugin messages such as " No permission message ", " Invalid arguments " using the following placeholders:

  • %prefix% - returns the plugin's prefix from " config.yml".
  • %sender% - returns the name of the command's sender.
  • %usage% - returns the command's usage.
  • %permission% - returns the needed permission to execute that command.
  • %player% - returns the affected by a command player. (e.g /clearchat <player>).
  • %message% - returns the message sent through "/message <player> <message>".
  • %recipient% - return the message's recipient sent through "/message <player> <message>"


config.yml file:

# This is the default configuration of ChatCommands 
prefix: '&6[ChatCommands]'

messages.yml file:

# Here you can edit all plugin's messages. 
No permission: '%prefix% &cSorry, but you don''t have permission to execute that command!' 
Invalid arguments: '%prefix% &cInvalid arguments. Please use %command_usage%' 
Player not found: '%prefix% &cCoudn''t find player with name "%player%"' 
Cleared chat: '%prefix% &aThe chat was cleared by %sender%' 
Player cleared chat: 
  Player view: '%prefix% &aYour chat was cleared by %sender%' 
  Sender view: '%prefix% &aYou''ve cleared %player%''s chat.' 
Clearing your chat: '%prefix% &cUse "/clearownchat" instead.' 
Cant clear player chat: '%prefix% &cYou can''t clear %player%''s chat.' 
Clearing your own chat: '%prefix% &aYou''ve cleared your own chat.' 
Mute chat: '%prefix% &aThe chat was muted by %sender%.' 
Already muted chat: '%prefix% &cThe chat is already muted!' 
Unmute chat: '%prefix% &aThe chat was unmuted by %sender%' 
Already unmuted chat: '%prefix% &cThe chat is already unmuted!' 
Muted chat player: '%prefix% &cThe chat is currently muted!' 
Sender chat format: '%prefix% &cMe &e---> &c%recipient% &e"%message%"' 
Recipient chat format: '%prefix% &c%sender% &e---> &cMe &e"%message%"' 
Cant message player: '%prefix% &cYou can''t message this player.' 
Cant message yourself: '%prefix% &cYou can''t message yourself.' 
Reload files: '%prefix% &aAll files reloaded successfuly.'

Similar projects

Plugin →