@EventHandler(priority = EventPriority.HIGHEST)
	public void onPlayerInteract(PlayerInteractEvent event){
		if (event.isCancelled()) return;
		
		Player player = event.getPlayer();
		
		if(event.getAction() == Action.RIGHT_CLICK_BLOCK) {
			if(event.getClickedBlock().getType() == Material.BED_BLOCK){
				if (player.getWorld().getName().endsWith("_" + player.getName())){
					if (plugin.mainWorlds.contains(player.getWorld().getName().replaceAll("_" + player.getName(), ""))){
						Location location = event.getClickedBlock().getLocation();
						player.getWorld().setSpawnLocation(location.getBlockX(), location.getBlockY(), location.getBlockZ());
						player.sendMessage(ChatColor.GOLD + "Spawn has been set this bed!");
					}
				}
			}
		}
	}