Update where players spawn upon first join...
...to avoid flight kick upon login
This commit is contained in:
parent
8eba2c9ccb
commit
05312a9bef
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user