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

Get damage even if teleported?!

Comments in 'Plugin Development' started by MyNameIsTriXz, Sep 18, 2016.

  1. MyNameIsTriXz
    Offline

    MyNameIsTriXz Notable Member

    Joined:
    Aug 17, 2015
    Posts:
    538
    Minecraft User:
    MyNameIsTriXz
    In my minigame it works like this:

    Two players fight
    Player1 dies
    Player1 gets teleported to respawn postion and gets health set to 20

    But the problem is that even though the player gets teleported the player can be damaged when he doesnt move because he still stays at the position unless he moves... How can I instantly update his positon or prevent other players to hit him after the teleport function call?
  2. EntirelyQuartz
    Offline

    EntirelyQuartz New Member

    Joined:
    Aug 9, 2016
    Posts:
    15
    Minecraft User:
    EntirelyQuartz
    Did you tried using teleportInmediate method?
  3. MyNameIsTriXz
    Offline

    MyNameIsTriXz Notable Member

    Joined:
    Aug 17, 2015
    Posts:
    538
    Minecraft User:
    MyNameIsTriXz
    Oh Ill try

Share This Page

Advertisement