Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PowerMute 1.0

A more effective way to mute users

  1. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,710
    Plugins:
    22
    Minecraft User:
    Falkirknh
    Last edited: Dec 21, 2016
  2. DopeteK
    Offline

    DopeteK Active Member

    Joined:
    Aug 24, 2013
    Posts:
    393
    Minecraft User:
    DTeK
    I get this error when using mute

    Error: array (
    'type' => 1,
    'message' => 'Call to a member function sendChat() on a non-object',
    'file' => 'E:\\Plotcraft BETA 0.1 PocketMine-MP\\plugins\\PowerMute.php',
    'line' => 39,
    )
  3. DopeteK
    Offline

    DopeteK Active Member

    Joined:
    Aug 24, 2013
    Posts:
    393
    Minecraft User:
    DTeK
    And an error when I use unmute

    Error: array (
    'type' => 1,
    'message' => 'Call to a member function sendChat() on a non-object',
    'file' => 'E:\\Plotcraft BETA 0.1 PocketMine-MP\\plugins\\PowerMute.php',
    'line' => 35,
    )

    I have removed lines 39 and 35 and it seems to work.
  4. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,710
    Plugins:
    22
    Minecraft User:
    Falkirknh
  5. DopeteK
    Offline

    DopeteK Active Member

    Joined:
    Aug 24, 2013
    Posts:
    393
    Minecraft User:
    DTeK
    I assume that means its fixed? :D

    Yep, I just checked it. Thank y0u :) Is there any chance you can make a mute on join option and a notice for muted players when they chat?

    I am using a chat group plugin alongside of this. A muted player can only chat via "/p c" so I would like an alert to be shown when a muted player speaks without the "/p c" command.
    Last edited: Mar 13, 2014
  6. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,710
    Plugins:
    22
    Minecraft User:
    Falkirknh
    I will bookmark this and when I have a chance, probably tomorrow, I will see what I can do.
  7. DopeteK
    Offline

    DopeteK Active Member

    Joined:
    Aug 24, 2013
    Posts:
    393
    Minecraft User:
    DTeK
    Hero
  8. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,710
    Plugins:
    22
    Minecraft User:
    Falkirknh
    Does /p c broadcast the message as server chat with the username attached, or does it actually make the user say the message?
  9. DopeteK
    Offline

    DopeteK Active Member

    Joined:
    Aug 24, 2013
    Posts:
    393
    Minecraft User:
    DTeK
    it is an edited version of chat control http://forums.pocketmine.net/plugins/chatcontrol.19/

    It says [partyname]<Playername> Message
  10. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,710
    Plugins:
    22
    Minecraft User:
    Falkirknh
    Okay!
  11. DopeteK
    Offline

    DopeteK Active Member

    Joined:
    Aug 24, 2013
    Posts:
    393
    Minecraft User:
    DTeK
    My server is called PlotCraft so I changed commands to match the name. ChatControl became PlotParty.
  12. DopeteK
    Offline

    DopeteK Active Member

    Joined:
    Aug 24, 2013
    Posts:
    393
    Minecraft User:
    DTeK
    As you know, my mute on join problem has been solved but is there any way to stop the text typed by the muted player from showing on their own screen or even a message that says you are muted? I would prefer the message option.


    Thanks for help with mute on join.
  13. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,710
    Plugins:
    22
    Minecraft User:
    Falkirknh
    The point of PowerMute is so players don't know they are muted, you can change: $player->sendChat("<" . $username . "> " . $message); to $player->sendChat("You are currently muted");
    DopeteK likes this.
  14. DopeteK
    Offline

    DopeteK Active Member

    Joined:
    Aug 24, 2013
    Posts:
    393
    Minecraft User:
    DTeK
    Done! THANK YOU!

    This plugin has now made it so my main chat lobby is always clear! My phone screen is now never flooded.
  15. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,201
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    if i restart the server, will the muted players will stay muted forever? by looking at the code, it seems the plugin itself doesnt save any kind of config files. thanks :)
  16. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,710
    Plugins:
    22
    Minecraft User:
    Falkirknh
    No, muted players are only muted for that server session.
  17. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,201
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    when are u going to support the session will be saved into a file that when server restarts, the muted players stays muted. ty
  18. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,710
    Plugins:
    22
    Minecraft User:
    Falkirknh
    I made the plugin so muted players would only be temp muted, maybe I will add an option to turn it one or off.
  19. DopeteK
    Offline

    DopeteK Active Member

    Joined:
    Aug 24, 2013
    Posts:
    393
    Minecraft User:
    DTeK
    Could you make it two commands please? Mute and unmute. My server runs this when a player joins and it mutes them but when they join a second time it unmutes them.
  20. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,710
    Plugins:
    22
    Minecraft User:
    Falkirknh
    Yeah, that shouldn't take long to do, I am just going to bed now though :)
    DopeteK likes this.

Share This Page

Advertisement