Plugin category: Chat Suggested name: ChatFilter What I want: I would like a chat plugin that can mute the chat except for admins and players that have the permission, And clear chat that's basically all I'm looking for. Ideas for commands: /mutechat, /cc. Ideas for permissions: chatfilter.talk.mute (can talk while chat is muted) chatfilter.clear (has permission to clear) chatfiter.mutechat (has permission to preform the command /mutechat) When I'd like it by: Today or Tommorow!
@IMrSharkIhttps://www.dropbox.com/s/ljk8ua6hnjv75y9/ChatControl.jar?dl=0 Permissions are: chatfilter.talk.mute to talk whilst the chat is muted chatfilter.clear to clear the chat chatfilter.mute to mute the chat Anything broken or do you need anything? Tahg me
Funny enough there is something similar here which you may be looking for. I use this plugin and it more or less does what you describe and more. http://www.spigotmc.org/resources/chatcontrol.271/
@Neonix Just a few things: You should be checking the command name rather than the command label - checking the command's name supports aliases. Secondly, your plugin throws errors when the command is run by a non-player - you should check that the sender is a Player before casting. There's also not a lot of point in casting to the player in the first place if you're only using CommandSender methods.
@AdamQpzm Didn't put most of my time in the plugin since I needed to go. I always learnt it as commandLabel, so I'll use the commands Name. Oh and the console yeah... I was abouttt to do that and I had to go. EDIT: Updated the plugin to support aliases (cc, mc) and allowed console to run the commands