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

player.quit - Doesn't work?!?

Comments in 'Plugin Development' started by SuperChipsLP, Mar 23, 2014.

  1. SuperChipsLP
    Offline

    SuperChipsLP Active Member Plugin Developer

    Joined:
    Sep 15, 2013
    Posts:
    204
    Plugins:
    5
    Minecraft User:
    Redmol
    Hey awesome developers!
    I have a small problem with the plugin of my Survival Games Server.

    Problem: player.quit only gets called when the player leaves trough the "Disconnect" Button. It doesn't get called when a player leaves for e.g. Timeout or flying..

    Which handler can i use to get both other leaving causes?
    I have experienced this bug really often on my server when someone gets kicked for flying, and my code from the player.quit handler doesn't get called.

    Thanks!
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    You must have got the wrong thing. player.quit should be called even if the player hadn't spawned (or even hadn't passed "player.connect" check) as of Alpha_1.3.12 (and annoyingly I had to make an isset() check for my array field of player status.)
  3. SuperChipsLP
    Offline

    SuperChipsLP Active Member Plugin Developer

    Joined:
    Sep 15, 2013
    Posts:
    204
    Plugins:
    5
    Minecraft User:
    Redmol
    Lol.. :c In my 1.3.12 release it gets called when a player disconnects.. Thats kinda strange..

Share This Page

Advertisement