[FORMATTED] Private muting

Discussion in 'Archived: Plugin Requests' started by donutlover9, Dec 18, 2011.

  1. Offline

    donutlover9

    Plugin category: Chat

    Suggested name: Privatemute

    A bit about me: I'm just a guy who wants to have fun on a server. I am thinking of making a public one.

    What I want: Griefers use spamming a lot, so I want to make that useless without having admins on. This would allow any players to mute any player, but only mute it for them as so people would not abuse muting everyone.

    Ideas for commands: /pmute [username]
    /punmute [username]

    Ideas for permissions: This should be a default:true permission player.canpmute and player.canpunmute and set it to false if they can't privately mute/unmute.

    Willing to pay up to: $0

    When I'd like it by: Any time, really. Just not in a ridiculously long time :)

    Similar plugin requests: None.

    Devs who might be interested in this: I don't know any :(
     
  2. Offline

    Perdog

    I shall look into this :)
     
    kahlilnc likes this.
  3. Offline

    Perdog

    Looked at it and it seemed possible at first, but I'm going to need to do a bit more research
     
  4. Offline

    dbizzzle

    @Perdog Just add them to an HashMap<String, ArrayList<String>> except store the first string as the muted person so onPlayerChat you can just get all the online players, put them in an array list then remove all the players from arraylist from the hashmap and use a loop to send the message to all the people in the original message.

    Edit: If that didn't make sense you can talk to me on skype, I'm pretty sure I have you.
     
  5. Offline

    Perdog

    What permissions plugin are you using? Or do you happen to have vault on your server?

    Edit: Give this a try. A really BIG thank you to @dbizzzle for helping me figure out the list part of this :)

    I haven't been able to test it, but it should work :) It uses super perms for the time being
     
  6. Offline

    dbizzzle

    @Perdog No problem, if you did it with superperms all you need to do is add pex as an external jar and it will work too.
     
  7. Offline

    Perdog

    I'll probably just use vault, that way anyone can use it
     

Share This Page