setCompassTarget and respawn

Discussion in 'Plugin Development' started by inklesspen, Feb 27, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    inklesspen

    I'm writing my own bare-bones 'home' plugin; you set a home, and your compass points there, and you spawn there.

    https://gist.github.com/846528 is my event handler code.

    So far so good, except when you respawn (in the desired place) the compass points at the original spawn point. So I figured it doesn't persist through spawn, and I added line 16 in the paste, to set the compass target when spawning. Unfortunately, this doesn't work either.

    Anyone have any ideas?

    (As regards server version, I downloaded the jar linked at the wiki about an hour ago.)
    --- merged: Feb 28, 2011 1:09 AM ---
    In the short term I've worked around it by setting the compass target when the user first moves, since that works.
     
Thread Status:
Not open for further replies.

Share This Page