No need to teleport players to world spawn on join
This commit is contained in:
parent
0ba732fed9
commit
b1f2dbf71e
@ -24,9 +24,9 @@ public class OnPlayerQuitEvent implements Listener {
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST)
|
||||
public void onPlayerJoinEvent(PlayerJoinEvent event) {
|
||||
Player playerJoining = event.getPlayer();
|
||||
playerJoining.teleport(playerJoining.getWorld().getSpawnLocation());
|
||||
}
|
||||
// @EventHandler(priority = EventPriority.HIGHEST)
|
||||
// public void onPlayerJoinEvent(PlayerJoinEvent event) {
|
||||
// Player playerJoining = event.getPlayer();
|
||||
// playerJoining.teleport(playerJoining.getWorld().getSpawnLocation());
|
||||
// }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user