Spawn Point

Discussion in 'Plugin Development' started by MCMatters, Mar 21, 2015.

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

    MCMatters

    Every time a player respawns i need to tp them to a location but a different location for each player. How can i do this?
     
  2. Offline

    nverdier

    @MCMatters Store the location for each player in a config. When they respawn, set the location to the one in the config.
     
  3. Offline

    MCMatters

    @nverdier what event. PlayerRespawnEvent?
     
  4. Offline

    nverdier

  5. @MCMatters Like @nverdier said, on PlayerRespawnEvent create a new location with the world name, x, y, and z, in the config and teleport the player to that new location.
     
Thread Status:
Not open for further replies.

Share This Page