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)
|
// @EventHandler(priority = EventPriority.HIGHEST)
|
||||||
public void onPlayerJoinEvent(PlayerJoinEvent event) {
|
// public void onPlayerJoinEvent(PlayerJoinEvent event) {
|
||||||
Player playerJoining = event.getPlayer();
|
// Player playerJoining = event.getPlayer();
|
||||||
playerJoining.teleport(playerJoining.getWorld().getSpawnLocation());
|
// playerJoining.teleport(playerJoining.getWorld().getSpawnLocation());
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user