No need to teleport players to world spawn on join

This commit is contained in:
selfslaughter 2020-05-07 11:24:35 +10:00
parent 0ba732fed9
commit b1f2dbf71e

View File

@ -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());
// }
}