No need to teleport players to world spawn on join
This commit is contained in:
		@@ -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());
 | 
			
		||||
//	}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user