ChatControl

Discussion in 'Plugin Requests' started by IMrSharkI, Dec 22, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    IMrSharkI

    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!
     
  2. Offline

    XvXRainbowzZ3D

    lll do this
     
  3. Last edited: Dec 23, 2014
  4. Offline

    TheYetti02

  5. @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.
     
  6. @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
     
    Last edited: Dec 23, 2014
  7. Offline

    IMrSharkI

Thread Status:
Not open for further replies.

Share This Page