spigot how to get player location code example
Example: spigot respawn player location
@EventHandler
public void playerRespawn(PlayerRespawnEvent e) {
e.setRespawnLocation(new Location(world, x, y, z, yaw, pitch));
}
@EventHandler
public void playerRespawn(PlayerRespawnEvent e) {
e.setRespawnLocation(new Location(world, x, y, z, yaw, pitch));
}