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

[Plugin Help] Player Quit notifier.

Comments in 'Plugin Development' started by KirkroCrafter, Jun 29, 2014.

  1. KirkroCrafter
    Offline

    KirkroCrafter Active Member

    Joined:
    Feb 24, 2014
    Posts:
    30
    Minecraft User:
    Kirkro8
    How do i make my server notify who left the game pocketmine dosent notify
    i tried
    PHP:
    case player.quit
             this
    ->api->chat->broadcast("data->['player'] left the game")

    doesent work
  2. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,201
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    you obviously need to learn more php.
    Renzo and PEMapModder like this.
  3. KirkroCrafter
    Offline

    KirkroCrafter Active Member

    Joined:
    Feb 24, 2014
    Posts:
    30
    Minecraft User:
    Kirkro8
    ya ur right.
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Quotes, colons, semicolons.

    Compare your code with those generated by plugin generators.
    iJoshuaHD likes this.
  5. xpyctum
    Offline

    xpyctum Active Member Plugin Developer

    Joined:
    Jan 13, 2014
    Posts:
    292
    Plugins:
    4
    Minecraft User:
    tylerdisney
    PHP:
    case 'player.quit':
    $issuer $data['player'];
    $username $issuer-> username;
    $this->api->chat->broadcast("$username Has Left The Game");
     break;
    iFootball likes this.
  6. SpiderPig
    Offline

    SpiderPig Active Member

    Joined:
    Sep 21, 2013
    Posts:
    128
    Minecraft User:
    SpiderPig
    I just changed the message to follow with vanilla
    PHP:
    $this->api->chat->broadcast("<server> ".$username." has left the game."); //follows vanilla theme
  7. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    I think such plugin already exists though.
  8. Renzo
    Offline

    Renzo Active Member

    Joined:
    Mar 12, 2014
    Posts:
    96
    Minecraft User:
    Renzo_4
    I think the plugin 'KnowWhenOthersDisconnect' is banned
  9. KirkroCrafter
    Offline

    KirkroCrafter Active Member

    Joined:
    Feb 24, 2014
    Posts:
    30
    Minecraft User:
    Kirkro8
    KnowWhenOthersDisconnect is still useless
    it doesent notify who left ....

    btw thanks for the code:)
  10. Renzo
    Offline

    Renzo Active Member

    Joined:
    Mar 12, 2014
    Posts:
    96
    Minecraft User:
    Renzo_4
    Ow yeah i forgot

Share This Page

Advertisement