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

death after teleport

Comments in 'Plugin Development' started by udwarf, Apr 23, 2016.

  1. udwarf
    Offline

    udwarf Active Member

    Joined:
    Apr 17, 2016
    Posts:
    61
    Minecraft User:
    1Zaza
    Hi guys!
    I'm experienced php-developer but newbie in plugins writing.

    Trying to build my pvp-plugin I ran into a problem that I do not know how to solve.
    Sometimes when user teleported to the fixed coordinates, he immedialy dies after teleportation.
    And worst of all, that in this case "respawn" button disabled and imposible to respwan or even go to "main menu"
    respawn.jpg
    At the same time other players sees that "dead" player and can attack him.

    Sorry if that was already discussed, but I couldn't find any solution
    I'm using PocketMine-MP_1.6dev-23_6ba0abf5_API-2.0.0
  2. HotFireyDeath
    Offline

    HotFireyDeath Notable Member Plugin Developer

    Joined:
    Mar 19, 2015
    Posts:
    328
    Plugins:
    1
    Minecraft User:
    HotFireyDeath
    Can you make sure your gamemode is not hardcore?
  3. udwarf
    Offline

    udwarf Active Member

    Joined:
    Apr 17, 2016
    Posts:
    61
    Minecraft User:
    1Zaza
    Defenetely not hardcore.
    And at that moment others players can attack this "dead" one (for them he appears as alive). When other player kills this "dead" one - then respawn button becomes enabled.
  4. udwarf
    Offline

    udwarf Active Member

    Joined:
    Apr 17, 2016
    Posts:
    61
    Minecraft User:
    1Zaza
    The player not supposed to die! But he somehow does after $player->teleport( $x, $y,$z , $yawn);
    Looks like only the game client thinks that player is dead. There are no any messages in the server logs and the other players sees that player still alive
  5. Jazzwhistle
    Offline

    Jazzwhistle Notable Member

    Joined:
    Dec 27, 2014
    Posts:
    364
    Minecraft User:
    Awzaw
  6. udwarf
    Offline

    udwarf Active Member

    Joined:
    Apr 17, 2016
    Posts:
    61
    Minecraft User:
    1Zaza
    I've resolved this issue only by switching to the one of poketmine's fork
    ImagicalGamer likes this.

Share This Page

Advertisement