@EventHandler (priority = EventPriority.LOW)
	public void onPlayerChangedWorld(PlayerChangedWorldEvent event){
		String playerName, playerGroup, playerWorld;
		Player player;
		player = event.getPlayer();
		playerName = player.getName();
		playerGroup = xm.getXplayer().getCurrentGroup(player);
		playerWorld = player.getWorld().getName();
		
		if(xm.getXplayer().hasGroupForWorld(playerName, playerWorld)){
			playerGroup = xm.getXplayer().getGroupForWorld(playerName, playerWorld);
			xm.getXpermissions().setPermissions(player, playerGroup);
			return;
		}
		else{
			if(xm.getXgroup().isSupportedByWorld(xm.getXplayer().getCurrentGroup(player), playerWorld)){
				playerGroup = xm.getXplayer().getCurrentGroup(player);
				xm.getXpermissions().setPermissions(player, playerGroup);
				return;
			}
			
			playerGroup = xm.getXgroup().getDefault(playerWorld);
			xm.getXpermissions().setPermissions(player, playerGroup);
			return;
		}
	}