Update where players spawn upon first join...

...to avoid flight kick upon login
This commit is contained in:
Alex-The-Coder 2016-05-11 21:57:42 -04:00
parent 8eba2c9ccb
commit 05312a9bef

View File

@ -467,7 +467,7 @@ public class HubManager extends MiniClientPlugin<HubClient>
@EventHandler
public void PlayerRespawn(PlayerRespawnEvent event)
{
event.setRespawnLocation(GetSpawn().add(0, 10, 0));
event.setRespawnLocation(GetSpawn());
}
@EventHandler(priority = EventPriority.LOW)
@ -491,7 +491,7 @@ public class HubManager extends MiniClientPlugin<HubClient>
// }
//Teleport
player.teleport(GetSpawn().add(0, 10, 0));
player.teleport(GetSpawn());
//Survival
player.setGameMode(GameMode.SURVIVAL);